annalen integration
This commit is contained in:
parent
88999f5362
commit
62fea815d1
@ -1,4 +1,7 @@
|
||||
from www import app
|
||||
import logging
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True, use_reloader=False)
|
||||
@ -42,10 +42,11 @@ def searh():
|
||||
if f_arg not in ['content', 'from']:
|
||||
return "field '" + f_arg + "' does not exist"
|
||||
|
||||
print("annalen /search k_arg=" + k_arg + " l_arg=" + l_arg + " f_arg=" + f_arg)
|
||||
|
||||
lists = []
|
||||
if l_arg == "all":
|
||||
lists = wconfig.lists_to_serve
|
||||
lists = archive.list_tables_db(config.db['database'], config.db['host'], config.db['user'], config.db['password'])
|
||||
else:
|
||||
lists.append(l_arg)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user