|
|
|
@ -223,8 +223,8 @@ def timedelta(seconds: int) -> str:
|
|
|
|
@flask_app.route("/")
|
|
|
|
@flask_app.route("/")
|
|
|
|
def dashboard():
|
|
|
|
def dashboard():
|
|
|
|
# config
|
|
|
|
# config
|
|
|
|
pinned_limit = 10
|
|
|
|
pinned_limit = 16
|
|
|
|
media_limit = 10
|
|
|
|
media_limit = 24
|
|
|
|
# for links from pinned collections
|
|
|
|
# for links from pinned collections
|
|
|
|
pinned_collections: Iterable[MediaCollection] = orm.select(
|
|
|
|
pinned_collections: Iterable[MediaCollection] = orm.select(
|
|
|
|
m for m in MediaCollection if m.pinned and not m.ignored
|
|
|
|
m for m in MediaCollection if m.pinned and not m.ignored
|
|
|
|
|