Skip to content

Commit

Permalink
fixed bug when subject is already found in the database
Browse files Browse the repository at this point in the history
dmarkant committed Sep 17, 2012
1 parent 893afc4 commit 8c3bb23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
@@ -343,9 +343,10 @@ def start_exp():
part = Participant( hitId, myip, assignmentId, workerId, subj_cond, subj_counter)
db_session.add( part )
db_session.commit()

elif numrecs==1:
part = matches[0].subjid

part = matches[0]
if part.status>=STARTED: # in experiment (or later) can't restart at this point
raise ExperimentError( 'already_started_exp' )
else:

0 comments on commit 8c3bb23

Please sign in to comment.