From 657a39e629aeb764717da0fa66b7ef66f5fd8b8f Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 6 Apr 2023 10:09:46 +0200 Subject: [PATCH] fix: [subtypes dashboard] fix obj base url --- var/www/blueprints/objects_subtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/www/blueprints/objects_subtypes.py b/var/www/blueprints/objects_subtypes.py index c5b0fcd0..dc97ffa8 100644 --- a/var/www/blueprints/objects_subtypes.py +++ b/var/www/blueprints/objects_subtypes.py @@ -79,7 +79,7 @@ def subtypes_objects_dashboard(obj_type, f_request): subtype=subtype) if subtypes_objs: for obj_t, obj_subtype, obj_id in subtypes_objs: - objs.append(ail_objects.get_object_meta(obj_t, obj_subtype, obj_id, options={'sparkline'})) + objs.append(ail_objects.get_object_meta(obj_t, obj_subtype, obj_id, options={'sparkline'}, flask_context=True)) endpoint_dashboard = f'objects_subtypes.objects_dashboard_{obj_type}' return render_template('subtypes_objs_dashboard.html', date_from=date_from, date_to=date_to,