From be1bf65f6fbe79556b89eb9c065a51ef79415404 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Jan 17 2023 14:07:23 +0000 Subject: Fix callnum handling Update callnum only where there are other commits Related: https://pagure.io/koji/issue/3658 --- diff --git a/koji/auth.py b/koji/auth.py index 36b6609..876bc18 100644 --- a/koji/auth.py +++ b/koji/auth.py @@ -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