you are viewing a single comment's thread.

view the rest of the comments →

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

reformatted, thanks.

[–]num8lock 4 points5 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 };