Update simpleping_index.py

This commit is contained in:
Mr Chen
2024-07-11 13:24:31 +08:00
parent 85c84b64c4
commit 04b7e07e90
+2 -2
View File
@@ -33,10 +33,10 @@ def pingData(args = ()):
atype = args['type']
if atype == 'pos':
pos = args['pos']
data = conn.where('created_unix>?',(pos,)).select()
data = conn.where('created_unix>?',(pos,)).limit("1000").select()
elif atype == 'range':
start = args['start']
end = args['end']
data = conn.where('created_unix>=? and created_unix<=?',(start,end)).select()
data = conn.where('created_unix>=? and created_unix<=?',(start,end)).limit("1000").select()
return data