Skip to content

Commit

Permalink
Convert bug_id to integer in fetch_bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Dec 22, 2014
1 parent 30b3ca6 commit a18b622
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion remo/remozilla/tasks.py
Expand Up @@ -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']
Expand Down

0 comments on commit a18b622

Please sign in to comment.