build.py: fix invalid column name master
authorHelmut Grohne <helmut@subdivi.de>
Sun, 1 Nov 2020 11:26:54 +0000 (12:26 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Sun, 1 Nov 2020 11:26:54 +0000 (12:26 +0100)
Fixes: f6d219e1a4fd ("add build architecture to schema of depcheck table")

build.py

index cb370ae..282b94d 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -116,7 +116,7 @@ def main():
                             (requestid,))
             if giveback:
                 cur.execute("""UPDATE depcheck SET giveback = 1
-                                WHERE buildarch = ? AND architecture = ?;""",
+                                WHERE buildarch = ? AND hostarch = ?;""",
                             (buildarch, hostarch,))
     finally:
         with contextlib.closing(db.cursor()) as cur: