Skip to content

Commit 0e4c800

Browse files
author
Chris Turner
committed
datajoint/admin.py: adjust order_by query building
1 parent 99d54b0 commit 0e4c800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def kill(restriction=None, connection=None, order_by=None): # pragma: no cover
4141

4242
query = 'SELECT * FROM information_schema.processlist WHERE id <> CONNECTION_ID()' + (
4343
"" if restriction is None else ' AND (%s)' % restriction) + (
44-
' ORDER BY %s' % (order_by if order_by else 'id'))
44+
' ORDER BY %s' % (order_by or 'id'))
4545

4646
while True:
4747
print(' ID USER HOST STATE TIME INFO')

0 commit comments

Comments
 (0)