fix: add translate function to strings

This commit is contained in:
Ernesto Ruiz 2022-09-19 11:56:42 -06:00 committed by GitHub
parent aa49ec815a
commit 94199b7867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ def get_chart_data(job_card_details, filters):
open_job_cards.append(periodic_data.get("Open").get(d))
completed.append(periodic_data.get("Completed").get(d))
datasets.append({"name": "Open", "values": open_job_cards})
datasets.append({"name": "Completed", "values": completed})
datasets.append({"name": _("Open"), "values": open_job_cards})
datasets.append({"name": _("Completed"), "values": completed})
chart = {"data": {"labels": labels, "datasets": datasets}, "type": "bar"}