Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.1] Fix ancient bug: incorrect usage of func.coalesce in User model #17577

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading