Commits

Yuji Hanamura committed bcba564

Fixed the bug of get_week_num function.

Comments (0)

Files changed (1)

     elif isinstance(date, dict):
         date = datetime.date(int(date['year']), int(date['month']), int(date['day']))
     elif not isinstance(date, datetime.date):
-        date = datetime.date(int(date.year), int(date.month), int(date.year))
+        date = datetime.date(int(date.year), int(date.month), int(date.day))
 
     if iso:
         return date.isocalendar()[1]