Skip to content

Commit be11e25

Browse files
committed
one more minor update
1 parent 3435d54 commit be11e25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
688688
limitedQuery = "%s WHERE ISNULL(%s,' ') " % (limitedQuery, uniqueField or field)
689689

690690
limitedQuery += "NOT IN (%s" % (limitStr % num)
691-
limitedQuery += "ISNULL(%s,' ') %s ORDER BY %s) ORDER BY %s" % (uniqueField or field, fromFrom, uniqueField or '1', uniqueField or '1')
691+
limitedQuery += "ISNULL(%s,' ') %s ORDER BY 1) ORDER BY 1" % (uniqueField or field, fromFrom)
692692
else:
693693
if " WHERE " in limitedQuery:
694694
limitedQuery = "%s AND %s " % (limitedQuery, field)

0 commit comments

Comments
 (0)