Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhacker98 authored Nov 3, 2024
1 parent e87000b commit aa04139
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ def time_to_seconds(time):
return sum(int(x) * 60**i for i, x in enumerate(reversed(stringt.split(":"))))


def seconds_to_time(seconds):
minutes = seconds // 60
remaining_seconds = seconds % 60
return f"{minutes:02d}:{remaining_seconds:02d}"

DURATION_LIMIT = int(time_to_seconds(f"{DURATION_LIMIT_MIN}:00"))


Expand Down

0 comments on commit aa04139

Please sign in to comment.