From: Michael Tremer Date: Fri, 14 Feb 2025 10:22:59 +0000 (+0000) Subject: builds: Don't overwrite points X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=899bbc0f7737f9972df730b56d3417a721032640;p=pbs.git builds: Don't overwrite points The cache could not be updated when we tried to add the BuildPoint class. Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 19ca772a..4a57a1b7 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -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)