groupby-fix
This commit is contained in:
parent
8b23ece194
commit
537b89dbaf
|
@ -54,7 +54,7 @@ async def get_notifications_grouped(author_id: int, after: int = 0, limit: int =
|
||||||
)
|
)
|
||||||
if after:
|
if after:
|
||||||
query = query.filter(Notification.created_at > after)
|
query = query.filter(Notification.created_at > after)
|
||||||
query = query.group_by(NotificationSeen.notification)
|
query = query.group_by(NotificationSeen.notification, Notification.created_at)
|
||||||
|
|
||||||
groups_amount = 0
|
groups_amount = 0
|
||||||
unread = 0
|
unread = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user