@@ -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