Coverage for seedboxsync/front/views/downloaded.py: 100%
9 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-07-26 17:46 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-07-26 17:46 +0000
1#
2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr>
3#
4# For the full copyright and license information, please view the LICENSE
5# file that was distributed with this source code.
6#
7"""SeedboxSync Flask vierw for downloaded torrents."""
9from flask import render_template
10from seedboxsync.front.cache import cache
11from seedboxsync.front.utils import init_flash
12from seedboxsync.front.views import bp
15@bp.route("/downloaded")
16@cache.cached(timeout=300) # pyright: ignore [reportUntypedFunctionDecorator]
17def downloaded() -> str:
18 """Downloaded list view."""
19 init_flash()
21 return render_template("downloaded.html")