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