diff --git a/var/www/modules/hiddenServices/Flask_hiddenServices.py b/var/www/modules/hiddenServices/Flask_hiddenServices.py index 1edf6ba0..5b53370a 100644 --- a/var/www/modules/hiddenServices/Flask_hiddenServices.py +++ b/var/www/modules/hiddenServices/Flask_hiddenServices.py @@ -105,8 +105,8 @@ def hiddenServices_page(): date_string = '{}-{}-{}'.format(date[0:4], date[4:6], date[6:8]) return render_template("hiddenServices.html", last_onions=list_onion, statDomains=statDomains, date_from=date_string, date_to=date_string) -@hiddenServices.route("/hiddenServices/last_crawled_domains_with_stats_jon", methods=['GET']) -def last_crawled_domains_with_stats_jon(): +@hiddenServices.route("/hiddenServices/last_crawled_domains_with_stats_json", methods=['GET']) +def last_crawled_domains_with_stats_json(): last_onions = r_serv_onion.lrange('last_onion', 0 ,-1) list_onion = [] diff --git a/var/www/modules/hiddenServices/templates/hiddenServices.html b/var/www/modules/hiddenServices/templates/hiddenServices.html index 639c461b..88a42d0d 100644 --- a/var/www/modules/hiddenServices/templates/hiddenServices.html +++ b/var/www/modules/hiddenServices/templates/hiddenServices.html @@ -354,7 +354,7 @@ d3.json(url) function refresh_list_crawled(){ - $.getJSON("{{ url_for('hiddenServices.last_crawled_domains_with_stats_jon') }}", + $.getJSON("{{ url_for('hiddenServices.last_crawled_domains_with_stats_json') }}", function(data) { var tableRef = document.getElementById('tbody_last_crawled');