diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-03 22:23:51 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-03 22:23:51 +0100 |
| commit | 64eea97456e1c45e8f08f3d18fcf86143f94cd53 (patch) | |
| tree | 1d7083e2a52073b527d0f18a9c2de63a0d80554b /api.py | |
| parent | 0af781413355c42850c2b7176112502d9cb4fde2 (diff) | |
| download | shrinker-64eea97456e1c45e8f08f3d18fcf86143f94cd53.tar.gz shrinker-64eea97456e1c45e8f08f3d18fcf86143f94cd53.zip | |
fixed lastMatchCreatedDate being updated on any player
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -136,9 +136,10 @@ class Worker(object): if do_upsert_date: # upsert lmcd because it was an explicit request await conn.execute(""" - UPDATE player SET "lastMatchCreatedDate"=$1 - WHERE player."lastMatchCreatedDate" < $1 - """, lmcd) + UPDATE player SET "lastMatchCreatedDate"=$2 + WHERE player."apiId"=$1 AND + player."lastMatchCreatedDate" < $2 + """, objid, lmcd) return objid |
