Coverage for seedboxsync/front/views/uploaded.py: 100%

9 statements  

« 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 uploaded torrents.""" 

8 

9from flask import render_template 

10from seedboxsync.front.cache import cache 

11from seedboxsync.front.utils import init_flash 

12from seedboxsync.front.views import bp 

13 

14 

15@bp.route("/uploaded") 

16@cache.cached(timeout=300) # pyright: ignore [reportUntypedFunctionDecorator] 

17def uploaded() -> str: 

18 """Uploaded list view.""" 

19 init_flash() 

20 

21 return render_template("uploaded.html")