diff options
Diffstat (limited to 'www/app.py')
-rwxr-xr-x | www/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |