tm20
This commit is contained in:
parent
387c13be6d
commit
88999f5362
@ -4,7 +4,7 @@ import archive.archive as archive
|
|||||||
import config
|
import config
|
||||||
import www.config as wconfig
|
import www.config as wconfig
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import os, logging
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@ -16,6 +16,11 @@ def favicon():
|
|||||||
return send_from_directory(os.path.join(app.root_path, 'static'),
|
return send_from_directory(os.path.join(app.root_path, 'static'),
|
||||||
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
'favicon.ico', mimetype='image/vnd.microsoft.icon')
|
||||||
|
|
||||||
|
@app.route('/lists')
|
||||||
|
def lists():
|
||||||
|
l = archive.list_tables_db(config.db['database'], config.db['host'], config.db['user'], config.db['password'])
|
||||||
|
return jsonify(lists=l)
|
||||||
|
|
||||||
@app.route('/search')
|
@app.route('/search')
|
||||||
def searh():
|
def searh():
|
||||||
|
|
||||||
@ -44,6 +49,8 @@ def searh():
|
|||||||
else:
|
else:
|
||||||
lists.append(l_arg)
|
lists.append(l_arg)
|
||||||
|
|
||||||
|
print(lists)
|
||||||
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
##
|
##
|
||||||
|
|||||||
@ -13,6 +13,8 @@ $(document).ready(function(){
|
|||||||
$('#graph').empty();
|
$('#graph').empty();
|
||||||
$('#results').empty();
|
$('#results').empty();
|
||||||
|
|
||||||
|
console.log('/search?'+ args)
|
||||||
|
|
||||||
$('#loading').show()
|
$('#loading').show()
|
||||||
$.get('/search?'+ args, function(data) {
|
$.get('/search?'+ args, function(data) {
|
||||||
$('#loading').hide()
|
$('#loading').hide()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user