Fix callnum handling
Update callnum only where there are other commits Related: https://pagure.io/koji/issue/3658
This commit is contained in:
parent
99a7e44d2d
commit
be1bf65f6f
1 changed files with 2 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ class Session(object):
|
|||
update = UpdateProcessor('sessions', rawdata={'callnum': callnum},
|
||||
clauses=['id = %(id)i'], values={'id': id})
|
||||
update.execute()
|
||||
# we only want to commit the callnum change if there are other commits
|
||||
context.commit_pending = False
|
||||
|
||||
# record the login data
|
||||
self.id = id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue