]> git.ipfire.org Git - pbs.git/commitdiff
builds: Don't overwrite points
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 10:22:59 +0000 (10:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 10:22:59 +0000 (10:22 +0000)
The cache could not be updated when we tried to add the BuildPoint
class.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py

index 19ca772a8133f1e06f4cddf09590e54a803b71f0..4a57a1b76a93c1ec40a9c5f3327cb15d58ebecf7 100644 (file)
@@ -649,14 +649,13 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin):
                        Add points (can be negative)
                """
                # Log points
-               points = await self.db.insert(
+               await self.db.insert(
                        BuildPoint, build=self, points=points, user=user,
                )
 
                # Update the cache
                self.points += points
 
-
        # Points
 
        points = Column(Integer, nullable=False, default=0)