Skip to content

Commit 2f49456

Browse files
authored
Fix current_month/year var for support report views_gsg.py
1 parent fd555a8 commit 2f49456

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dashboard/views_gsg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ def reports(request):
528528
all_active_installs = []
529529

530530
# Parse the year and month from the value
531-
current_year = int(value[:4])
532-
current_month = int(value[4:])
531+
selected_year = current_year = int(value[:4])
532+
selected_month = current_month = int(value[4:])
533533
current_date = datetime(current_year, current_month, 1)
534534

535535
# Generate the date ranges and formatted month names
@@ -700,7 +700,7 @@ def update_totals(category, date):
700700
visit = process_support_row(
701701
unit, issue, raw_date_reported, raw_date_resolved,
702702
all_active_installs, install_to_building_map,
703-
current_year, current_month
703+
selected_year, selected_month
704704
)
705705

706706
if visit:
@@ -743,7 +743,7 @@ def update_totals(category, date):
743743
visit = process_support_row(
744744
unit, issue, raw_date_reported, raw_date_resolved,
745745
all_active_installs, install_to_building_map,
746-
current_year, current_month
746+
selected_year, selected_month
747747
)
748748

749749
if visit:

0 commit comments

Comments
 (0)