Skip to content

Commit

Permalink
Fix experiment_done, fix comparison of existing settings vs given one
Browse files Browse the repository at this point in the history
  • Loading branch information
pypingou committed Jun 12, 2013
1 parent 60cfc26 commit 0bb9aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mq2_web.py
Expand Up @@ -220,8 +220,8 @@ def experiment_done(session_id, lod_threshold, session):
pass
for exp in get_experiment_ids(session_id):
infos = retrieve_exp_info(session_id, exp)
if infos['session'] == session and \
infos['lod_threshold'] == float(lod_threshold):
if str(infos['session']) == str(session) and \
float(infos['lod_threshold']) == float(lod_threshold):
return exp
return False

Expand Down

0 comments on commit 0bb9aaf

Please sign in to comment.