Skip to content

Commit 021d8cc

Browse files
committed
fix: none yields true issue
1 parent bdb9ad8 commit 021d8cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/a2a/server/tasks/database_task_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ async def list(
197197
dialect_name = getattr(getattr(bind, 'dialect', None), 'name', '')
198198
dialect_name = dialect_name.lower() if dialect_name else ''
199199
if dialect_name in ('mysql', 'mariadb'):
200-
# Put non-NULL timestamps first (is_(None()) yields 0 for non-null, 1 for null)
200+
# Put non-NULL timestamps first (is_(None) yields True for NULL rows)
201201
stmt = base_stmt.order_by(
202-
timestamp_col.is_(None()),
202+
timestamp_col.is_(None),
203203
timestamp_col.desc(),
204204
self.task_model.id.desc(),
205205
)

0 commit comments

Comments
 (0)