From 021cb80abdf68ae3f2184a6b8addf043767cb018 Mon Sep 17 00:00:00 2001 From: John Davis Date: Fri, 1 Mar 2024 17:22:34 -0500 Subject: [PATCH] Fix bug: this is not part of a sql stmt --- lib/galaxy/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index c19ec9770bcf..5b06b08cb74c 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -919,7 +919,7 @@ def adjust_total_disk_usage(self, amount, quota_source_label): assert amount is not None if amount != 0: if quota_source_label is None: - self.disk_usage = func.coalesce(self.table.c.disk_usage, 0) + amount + self.disk_usage = (self.disk_usage or 0) + amount else: # else would work on newer sqlite - 3.24.0 engine = object_session(self).bind