Skip to content

Commit

Permalink
indent error
Browse files Browse the repository at this point in the history
  • Loading branch information
luke11brown committed Jan 26, 2024
1 parent 1f291e0 commit 6364b99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto_airac_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def initialise(self, date_in=None) -> int:
return number_of_cycles

def current_cycle(self) -> str:
"""Return the date of the current AIRAC cycle"""
"""Return the date of the current AIRAC cycle"""
def cycle(sub=0):
number_of_cycles = self.initialise() - sub
number_of_days = number_of_cycles * self.cycle_days + 1
Expand All @@ -57,11 +57,11 @@ def cycle(sub=0):
current_cycle = cycle()
if current_cycle > self.today_date:
current_cycle = cycle(sub=1)

# Format month with leading zero if necessary
month_part = str(current_cycle.month).zfill(2)

return f"{current_cycle.year}_{month_part}"
return f"{current_cycle.year}_{month_part}"


def current_tag(self) -> str:
Expand Down

0 comments on commit 6364b99

Please sign in to comment.