From 04b7e07e907ef9bf361205c4cd71ddbe7ec42b5e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 11 Jul 2024 13:24:31 +0800 Subject: [PATCH] Update simpleping_index.py --- plugins/simpleping/simpleping_index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/simpleping/simpleping_index.py b/plugins/simpleping/simpleping_index.py index 69a632255..6d722b100 100755 --- a/plugins/simpleping/simpleping_index.py +++ b/plugins/simpleping/simpleping_index.py @@ -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