From 7c58590103b0c0bcf1f9b595a0a0b00863ff4172 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Feb 2013 16:00:37 +0530 Subject: [PATCH] send int --- oxdata/movie/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oxdata/movie/models.py b/oxdata/movie/models.py index 942fc0a..4326126 100644 --- a/oxdata/movie/models.py +++ b/oxdata/movie/models.py @@ -199,6 +199,8 @@ class Imdb(models.Model): for key in j.keys(): if not j[key]: del j[key] + if 'year' in j and isinstance(j['year'], basestring) and j['year'].isdigit(): + j['year'] = int(j['year']) return j def get_new_ids(timeout=-1):