Skip to content

Commit

Permalink
Ordena dados com base no campo temporal
Browse files Browse the repository at this point in the history
  • Loading branch information
pitangainnovare committed Oct 11, 2024
1 parent a578579 commit 0e6ae26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions analytics/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,9 @@ def _title_report_to_chart_data(self, json_results):
elif p_metric_label == 'Unique_Item_Requests':
serie_unique_requests.append([fmt_date, int(p_metric_value)])

serie_total_requests = sorted(serie_total_requests, key=lambda x: x[0])
serie_unique_requests = sorted(serie_unique_requests, key=lambda x: x[0])

chart_data = {
'series': [
{'data': serie_total_requests, 'name': 'Total Item Requests',},
Expand Down

0 comments on commit 0e6ae26

Please sign in to comment.