TG-35 : API de login

This commit is contained in:
Clément ARNAUDEAU
2017-01-23 15:50:05 +01:00
parent 4d31f5fbe7
commit e523da2f1d
4 changed files with 55 additions and 3 deletions

View File

@ -4,10 +4,11 @@ import os
import unittest
import warnings
from app.config import Config
from flask_script import Manager, Command
from flask_script import prompt_bool
from app.config import Config
warnings.simplefilter('ignore')
parser = argparse.ArgumentParser()
@ -61,10 +62,11 @@ class CheckDB(Command):
print("List of parsed tables:")
print(core.meta.tables.keys())
query = model.SETTINGS.select()
# query = model.SETTINGS.select(model.SETTINGS.c.key == 'content_basedir')
result = query.execute()
print("\nSETTINGS content :")
for res in result:
print(res.key + " = " + res.value)
print(res.key + " = " + res.value + " -> " + res.description)
manager.add_command('checkdb', CheckDB())