diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 19:41:31 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-13 19:41:31 +0200 |
| commit | b8fcdaa9b852cce63badb2665151615e1865a02d (patch) | |
| tree | f2e6b6d22fda8f92c877ef15ec467d73afac6c80 /worker.py | |
| parent | 240135442bafdbf905fc1bf1494232502dc66002 (diff) | |
| download | analyzer-b8fcdaa9b852cce63badb2665151615e1865a02d.tar.gz analyzer-b8fcdaa9b852cce63badb2665151615e1865a02d.zip | |
rename score to impact_score and make it INT
Diffstat (limited to 'worker.py')
| -rw-r--r-- | worker.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -223,15 +223,15 @@ def process(): with db.no_autoflush: for c in range(len(ratings)): - rating = float(ratings[c]) + rating = int(100 * float(ratings[c])) pstat = db.query(ParticipantStats).filter( ParticipantStats.participant_api_id == ids[c]).first() # manual upsert if pstat is None: db.add(ParticipantStats(participant_api_id=ids[c], - score=rating)) + impact_score=rating)) else: - pstat.score = rating + pstat.impact_score = rating db.commit() # ack all until this one |
