From f6a90faf4f0ef95bdd044649c7d3b87ad4d7f85d Mon Sep 17 00:00:00 2001 From: Dave Eargle Date: Tue, 4 Oct 2016 14:22:06 -0400 Subject: [PATCH] adding a new column, to make data analysis easier to filter out sandboxed and debug hits --- psiturk/experiment.py | 3 ++- psiturk/models.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/psiturk/experiment.py b/psiturk/experiment.py index 2a44239f0..f7082fcd8 100644 --- a/psiturk/experiment.py +++ b/psiturk/experiment.py @@ -388,7 +388,8 @@ def start_exp(): ipaddress=worker_ip, browser=browser, platform=platform, - language=language + language=language, + mode=mode ) part = Participant(**participant_attributes) db_session.add(part) diff --git a/psiturk/models.py b/psiturk/models.py index 005f67ef7..76e5aacf7 100644 --- a/psiturk/models.py +++ b/psiturk/models.py @@ -34,6 +34,7 @@ class Participant(Base): endhit = Column(DateTime) bonus = Column(Float, default = 0) status = Column(Integer, default = 1) + mode = Column(String(128)) if 'postgres://' in config.get('Database Parameters', 'database_url').lower(): datastring = Column(Text) else: