(request: WSGIRequest)
return render(request, "musiq.html", context)
Renders the /musiq page.
Renders the /musiq page.
Renders the / musiq page .
def index(request: WSGIRequest) -> HttpResponse:
    """Renders the /musiq page."""
    from core import urls

    context = base.context(request)
    context["urls"] = urls.musiq_paths
    context["additional_keywords"] = storage.get("additional_keywords")
    context["forbidden_keywords"] = storage.get("forbidden_keywords")
    context["embed_stream"] = storage.get("embed_stream")
    context["dynamic_embedded_stream"] = storage.get("dynamic_embedded_stream")
    for platform in ["youtube", "spotify", "soundcloud", "jamendo"]:
        if storage.get("online_suggestions") and storage.get(f"{platform}_enabled"):
            suggestion_count = storage.get(f"{platform}_suggestions")
        else:
            suggestion_count = 0
        context[f"{platform}_suggestions"] = suggestion_count
    return render(request, "musiq.html", context)
def index ( request : WSGIRequest ) -> HttpResponse : from core import urls context = base . context ( request ) context [ "urls" ] = urls . musiq_paths context [ "additional_keywords" ] = storage . get ( "additional_keywords" ) context [ "forbidden_keywords" ] = storage . get ( "forbidden_keywords" ) context [ "embed_stream" ] = storage . get ( "embed_stream" ) context [ "dynamic_embedded_stream" ] = storage . get ( "dynamic_embedded_stream" ) for platform in [ "youtube" , "spotify" , "soundcloud" , "jamendo" ] : if storage . get ( "online_suggestions" ) and storage . get ( f"{platform}_enabled" ) : suggestion_count = storage . get ( f"{platform}_suggestions" ) else : suggestion_count = 0 context [ f"{platform}_suggestions" ] = suggestion_count return render ( request , "musiq.html" , context )