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

10 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 homepage.""" 

8 

9from flask import render_template 

10from seedboxsync.core import current_app as app 

11from seedboxsync.front.cache import cache 

12from seedboxsync.front.utils import init_flash 

13from seedboxsync.front.views import bp 

14 

15 

16@bp.route("/") 

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

18def homepage() -> str: 

19 """Home page view.""" 

20 init_flash() 

21 

22 return render_template("homepage.html", config=app.seedboxsync_config)