diff --git a/var/www/blueprints/crawler_splash.py b/var/www/blueprints/crawler_splash.py index b015b7c4..937ec732 100644 --- a/var/www/blueprints/crawler_splash.py +++ b/var/www/blueprints/crawler_splash.py @@ -306,10 +306,10 @@ def crawlers_last_domains_json(): stats.append(crawlers.get_crawlers_stats_by_day(date, domain_type)) return jsonify(stats) -@crawler_splash.route('/crawlers/last/domains/monthly/json') +@crawler_splash.route('/crawlers/last/domains/month/json') @login_required @login_read_only -def crawlers_last_domains_monthly_json(): +def crawlers_last_domains_month_json(): domain_type = request.args.get('type') if domain_type not in crawlers.get_crawler_all_types(): return jsonify({'error': 'Invalid domain type'}), 400 diff --git a/var/www/templates/crawler/crawler_splash/last_crawled.html b/var/www/templates/crawler/crawler_splash/last_crawled.html index eb756e08..66641848 100644 --- a/var/www/templates/crawler/crawler_splash/last_crawled.html +++ b/var/www/templates/crawler/crawler_splash/last_crawled.html @@ -102,6 +102,7 @@ +

Month Stats:

@@ -144,14 +145,13 @@ $(document).ready(function(){ $('#date-range-to-input').val(s2); } }); + chart.stackBarChart = barchart_type_stack("{{ url_for('crawler_splash.crawlers_last_domains_json') }}?type={{type}}", '#barchart_type'); + chart.stackBarChartMonth = barchart_type_stack("{{ url_for('crawler_splash.crawlers_last_domains_month_json') }}?type={{type}}", '#barchart_type_month'); - chart.stackBarChart = barchart_type_stack("{{ url_for('crawler_splash.crawlers_last_domains_json') }}?type={{type}}", 'barchart_type'); - chart.stackBarChartMonth = barchart_type_stack("{{ url_for('crawler_splash.crawlers_last_domains_monthly_json') }}?type={{type}}", 'barchart_type_month'); - - chart.onResize() - $(window).on("resize", function() { - chart.onResize(); - }); + //chart.onResize(); + //$(window).on("resize", function() { + // chart.onResize(); + //}); $('[data-toggle="popover"]').popover({ placement: 'top', @@ -177,30 +177,31 @@ function toggle_sidebar(){