From 1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Tue, 21 Feb 2023 20:30:52 +0100 Subject: telefonsko popravilo py webappa --- www/app.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/app.py') 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() -- cgit v1.2.3