We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 428b08b + d605f4d commit 5fe9300Copy full SHA for 5fe9300
chronos/views.py
@@ -3,6 +3,7 @@
3
4
from fastapi import APIRouter, Depends, HTTPException
5
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
6
+from sqlalchemy import nullslast
7
from sqlalchemy.exc import NoResultFound
8
from sqlmodel import Session, select
9
@@ -183,7 +184,7 @@ async def get_logs(
183
184
logs = db.exec(
185
select(WebhookLog)
186
.where(WebhookLog.webhook_endpoint_id == endpoint.id)
- .order_by(WebhookLog.timestamp.desc())
187
+ .order_by(nullslast(WebhookLog.timestamp.desc()))
188
.offset(offset)
189
.limit(100)
190
).all()
0 commit comments