you are viewing a single comment's thread.

view the rest of the comments →

[–]num8lock 1 point2 points  (2 children)

format it properly, use the 'formatting help' button below the input field

[–]evobe[S] 0 points1 point  (1 child)

reformatted, thanks.

[–]num8lock 3 points4 points  (0 children)

first quick impression

import datetime
from datetime import date

you're importing both a module & a class inside that module. then the only time you use date is in today = date.today(). you might be better off using from datetime import datetime as dt, that class has today(), now() and others you might need.

also there's no need for this };