summaryrefslogtreecommitdiffstats
path: root/www/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'www/app.py')
-rwxr-xr-xwww/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/www/app.py b/www/app.py
index 1bb512a..de60c37 100755
--- a/www/app.py
+++ b/www/app.py
@@ -27,6 +27,8 @@ def index():
for hash, torrent in torrents.items():
if not request.args.get("regex"):
break
+ if len(result) >= 100:
+ break
if torrent.matches(request.args.get("regex")):
try:
decodedname = torrent.dict.get(b'info').get(b'name').decode()