Permalink
Browse files

Use `date` type rather than `datetime` for 'releasedate attribute'.

  • Loading branch information...
wagnerrp committed Apr 30, 2012
1 parent aa0e26f commit 5b86d8bb95c69205d8669bb23c30ccd6b8514c4b
Showing with 1 addition and 1 deletion.
  1. +1 −1 tmdb3/tmdb_api.py
View
@@ -386,7 +386,7 @@ def fromIMDB(cls, imdbid, locale=None):
budget = Datapoint('budget')
revenue = Datapoint('revenue')
releasedate = Datapoint('release_date', handler=lambda x: \
datetime.datetime.strptime(x, '%Y-%m-%d'))
datetime.date(*[int(y) for y in x.split('-')]))
homepage = Datapoint('homepage')
imdb = Datapoint('imdb_id')

0 comments on commit 5b86d8b

Please sign in to comment.