Skip to content

Commit

Permalink
Candidate double validation
Browse files Browse the repository at this point in the history
  • Loading branch information
laemtl committed Sep 7, 2021
1 parent abee450 commit 60bc3d2
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 148 deletions.
7 changes: 3 additions & 4 deletions python/eeg2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_loris_visits(sid, subproject):
@sio.event
def create_visit(sid, data):
loris_api.create_visit(data['candID'], data['visit'], data['site'], data['project'], data['subproject'])
#loris_api.start_next_stage(data['candID'], data['visit'], data['site'], data['subproject'], data['project'], data['date'])
loris_api.start_next_stage(data['candID'], data['visit'], data['site'], data['subproject'], data['project'], data['date'])

@sio.event
def create_candidate_and_visit(sid, data):
Expand All @@ -130,9 +130,8 @@ def create_candidate_and_visit(sid, data):
print('create_visit')
loris_api.create_visit(new_candidate['CandID'], data['visit'], data['site'], data['project'],
data['subproject'])
print('start_next_stage')
#loris_api.start_next_stage(new_candidate['CandID'], data['visit'], data['site'], data['subproject'],
# data['project'], data['date'])
loris_api.start_next_stage(new_candidate['CandID'], data['visit'], data['site'], data['subproject'],
data['project'], data['date'])
print('new_candidate_created')
sio.emit('new_candidate_created', new_candidate)

Expand Down
Loading

0 comments on commit 60bc3d2

Please sign in to comment.