Fix bug/typo: use select_from

This commit is contained in:
John Davis
2024-04-02 10:08:53 -04:00
parent c5b8b7e6d6
commit cc87d0621b
+1 -1
View File
@@ -140,7 +140,7 @@ class TagsController(BaseUIController, UsesTagsMixin):
# Do query and get result set.
query = (
select(item_tag_assoc_class.table.c.value, func.count())
.select_from_obj(from_obj)
.select_from(from_obj)
.where(where_clause)
.group_by(item_tag_assoc_class.table.c.value)
.order_by(func.count().desc(), item_tag_assoc_class.table.c.value)