fix small issues with archive refroctoring
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
from flask import render_template, request, jsonify
|
||||
from flask import render_template, request, jsonify, send_from_directory
|
||||
from www import app
|
||||
import archive.archive as archive
|
||||
import config
|
||||
@@ -21,7 +21,7 @@ def searh():
|
||||
|
||||
if len(request.args) < 1:
|
||||
# q: list all table or keep predefined wconfig.lists_to_serve?
|
||||
wconfig.lists_to_serve = archive.show_tables_db(config.db['database'], config.db['host'], config.db['user'], config.db['password'])
|
||||
wconfig.lists_to_serve = archive.list_tables_db(config.db['database'], config.db['host'], config.db['user'], config.db['password'])
|
||||
return render_template("search.html", archives=wconfig.lists_to_serve, fields=['content', 'from'])
|
||||
|
||||
k_arg = request.args.get('keyword')
|
||||
|
||||
Reference in New Issue
Block a user