Coverage for seedboxsync/front/views/frontend/uploaded.py: 100%
9 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +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 view for uploaded torrents."""
9from flask import render_template
10from seedboxsync.front.cache import cached
11from seedboxsync.front.login_manager import login_required
12from seedboxsync.front.views import bp_frontend as bp
15@bp.route("/uploaded")
16@cached(timeout=300) # pyright: ignore [reportUntypedFunctionDecorator]
17@login_required # type: ignore[untyped-decorator]
18def uploaded() -> str:
19 """
20 Render the uploaded torrents list view.
22 Returns the rendered HTML template containing the history or status of uploaded torrents (cached for 5 minutes).
24 Returns:
25 str: Rendered HTML template.
26 """
27 return render_template("uploaded.html")