Skip to content

Commit 51ed970

Browse files
authored
version 0.9.7 (#32)
* version 0.9.7 - relaxed exclusion criterion * Update __init__.py
1 parent 4a80c1e commit 51ed970

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from app import consent, alert, experiment, complete, error
44
from .io import write_metadata
55
from .utils import gen_code
6-
__version__ = '0.9.6'
6+
__version__ = '0.9.7'
77

88
## Define root directory.
99
ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
@@ -89,11 +89,11 @@ def index():
8989

9090
## Update metadata.
9191
for k, v in info.items(): session[k] = v
92-
session['ERROR'] = "1004: Revisited home."
93-
write_metadata(session, ['ERROR'], 'a')
92+
session['WARNING'] = "Revisited home."
93+
write_metadata(session, ['WARNING'], 'a')
9494

95-
## Redirect participant to error (previous participation).
96-
return redirect(url_for('error.error', errornum=1004))
95+
## Redirect participant to consent form.
96+
return redirect(url_for('consent.consent'))
9797

9898
## Case 5: first visit, workerId present.
9999
else:

0 commit comments

Comments
 (0)