From a18b6225d4958f303add4961185dc2f8e1d79b44 Mon Sep 17 00:00:00 2001 From: Tasos Katsoulas Date: Thu, 18 Dec 2014 17:21:37 +0200 Subject: [PATCH] Convert bug_id to integer in fetch_bugs. --- remo/remozilla/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remo/remozilla/tasks.py b/remo/remozilla/tasks.py index aac74ae4d..648658305 100644 --- a/remo/remozilla/tasks.py +++ b/remo/remozilla/tasks.py @@ -73,7 +73,8 @@ def fetch_bugs(components=COMPONENTS, days=None): break for bdata in bugs['bugs']: - bug, created = Bug.objects.get_or_create(bug_id=bdata['id']) + bug, created = Bug.objects.get_or_create( + bug_id=int(bdata['id'])) bug.summary = bdata.get('summary', '').encode('utf-8') creator_name = bdata['creator']['name']