Skip to content

Commit

Permalink
adding a new column, to make data analysis easier to filter out sandb…
Browse files Browse the repository at this point in the history
…oxed and debug hits
  • Loading branch information
deargle committed Oct 4, 2016
1 parent 28593ff commit f6a90fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psiturk/experiment.py
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions psiturk/models.py
Expand Up @@ -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:
Expand Down

0 comments on commit f6a90fa

Please sign in to comment.