Przeglądaj źródła

fix: #15548 Resolve errors in SQL queries caused by SELECT fields not appearing in the GROUP BY clause. (#17408)

tags/1.2.0
bravomark 7 miesięcy temu
rodzic
commit
5aa82629dd
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      api/services/tag_service.py

+ 1
- 1
api/services/tag_service.py Wyświetl plik

@@ -20,7 +20,7 @@ class TagService:
)
if keyword:
query = query.filter(db.and_(Tag.name.ilike(f"%{keyword}%")))
query = query.group_by(Tag.id, Tag.type, Tag.name)
query = query.group_by(Tag.id, Tag.type, Tag.name, Tag.created_at)
results: list = query.order_by(Tag.created_at.desc()).all()
return results


Ładowanie…
Anuluj
Zapisz