fix: Add last played spotify song when none currently playing
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 2m39s
Build Docker / BuildImage (push) Successful in 4m23s

This commit is contained in:
2026-01-28 21:50:15 +07:00
parent d53c48ba85
commit 779f895ef8
4 changed files with 37 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ from flask import render_template
from tools import getAddress, get_tools_data, getClientIP
import os
from functools import lru_cache
from blueprints.spotify import get_spotify_track
from blueprints.spotify import get_playing_spotify_track
from cache_helper import get_git_latest_activity, get_projects as get_projects_cached
@@ -61,7 +61,7 @@ def curl_response(request):
"index.ascii",
repo=get_current_project(),
ip=getClientIP(request),
spotify=get_spotify_track(),
spotify=get_playing_spotify_track(),
),
200,
{"Content-Type": "text/plain; charset=utf-8"},