Update views.py

fix timedelta error, hopefully it works now