Skip to content

Commit

Permalink
update new day script
Browse files Browse the repository at this point in the history
  • Loading branch information
TomW1605 committed Dec 1, 2023
1 parent 60a1f13 commit da495e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions newDay.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

folder = config['general']['year'] + " - " + config['general']['language']

os.makedirs(os.path.join('.', folder), exist_ok=True)

completedDays = next(os.walk(os.path.join('.', folder)))[1]
completedDays.sort(key=lambda f: int(re.sub('\D', '', f)))
if len(completedDays) > 0:
Expand Down

0 comments on commit da495e1

Please sign in to comment.