diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-21 20:30:52 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-21 20:30:52 +0100 |
commit | 1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86 (patch) | |
tree | 16bf83a61ce8dacd31a51fdbce9d8ef99cf97928 /www/app.py | |
parent | escaping html in filenames (diff) | |
download | travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.gz travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.bz2 travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.lz travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.xz travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.tar.zst travnik-1e21a8bc7d39547e8e5cb8f9bd7322d7a6c22d86.zip |
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() |