Skip to content

Commit

Permalink
fix date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
adammcgrath committed Jan 3, 2014
1 parent a37286d commit 737ce0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ class GetFilmsByYear(webapp2.RequestHandler):
def get(self, year):
"""Get films from the Freebase API."""
cursor = self.request.get('cursor', default_value='')
first_day = datetime.datetime(int(year), 1, 1)
first_day = datetime.date(int(year), 1, 1)
last_day = datetime.date(int(year), 12, 31)
now = datetime.datetime.now()
now = datetime.datetime.now().date()
from_date_param = self.request.get('from_date', default_value=first_day.strftime(ISO_DATE_FORMAT))

from_date = parse(from_date_param, default=DEFAULT_DATE)
Expand Down

0 comments on commit 737ce0d

Please sign in to comment.