fix: [subtypes dashboard] fix obj base url

pull/594/head
Terrtia 2023-04-06 10:09:46 +02:00
parent ab01de76e5
commit 657a39e629
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def subtypes_objects_dashboard(obj_type, f_request):
subtype=subtype) subtype=subtype)
if subtypes_objs: if subtypes_objs:
for obj_t, obj_subtype, obj_id in 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}' endpoint_dashboard = f'objects_subtypes.objects_dashboard_{obj_type}'
return render_template('subtypes_objs_dashboard.html', date_from=date_from, date_to=date_to, return render_template('subtypes_objs_dashboard.html', date_from=date_from, date_to=date_to,