Skip to content

Commit

Permalink
Backward compatibility of meeting id
Browse files Browse the repository at this point in the history
  • Loading branch information
cornchz committed Sep 26, 2014
1 parent 8f3b851 commit 71f4cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokr/scripts/meeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def create_or_get_meeting(session, region_id, obj, update=False):
id = int('{region_id}{assembly_id}{session_id}{meeting_id}{md5}'.format(
region_id=region_id,
assembly_id=obj['assembly_id'],
session_id=strhash(session_id),
meeting_id=strhash(meeting_id),
session_id=int(session_id) if session_id.isdigit() else strhash(session_id),
meeting_id=int(meeting_id) if meeting_id.isdigit() else strhash(meeting_id),
md5=strhash(obj['committee'])))

meeting = session.query(Meeting).filter_by(id=id).first()
Expand Down

0 comments on commit 71f4cb0

Please sign in to comment.