1. Yuji Hanamura
  2. weeklib

Commits

Yuji Hanamura  committed b00067e

Modified __init_db method to use get_week_num function.

  • Participants
  • Parent commits b06c226
  • Branches default

Comments (0)

Files changed (1)

File weeklib.py

View file
  • Ignore whitespace
         week_db = {}
         for x in range(0, (stop_day - start_day).days):
             date = start_day + datetime.timedelta(days=x)
-            week_num = date.isocalendar()[1]
+            week_num = get_week_num(date)
             if week_num not in week_db:
                 week_db[week_num] = []
             week_db[week_num].append(date)