Skip to content

Commit

Permalink
Update auto_delete_conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MadhuNimmo authored Jul 31, 2024
1 parent 3d09699 commit 681b2a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto_delete_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get_month(date_str):
if conf_month:
# Calculate the next month considering year rollover
next_month = (conf_month % 12) + 1
next_month_year = current_year if next_month > conf_month else current_year + 1
# Use the same year unless it rolls over to January
next_month_year = current_year if conf_month < 12 else current_year + 1

# Determine if the conference is in the past
if (current_year > next_month_year) or (current_year == next_month_year and current_month > next_month):
Expand Down

0 comments on commit 681b2a1

Please sign in to comment.