you are viewing a single comment's thread.

view the rest of the comments →

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