mirror of
https://github.com/JoseDeFreitas/awesome-youtubers.git
synced 2025-01-03 11:30:49 -05:00
Test image getter
This commit is contained in:
parent
a4709a29ac
commit
2f78345cf4
@ -58,6 +58,7 @@ def get_channel(channel):
|
|||||||
@api_channels.route("/channels/<channel>/image.svg")
|
@api_channels.route("/channels/<channel>/image.svg")
|
||||||
def img_channel(channel):
|
def img_channel(channel):
|
||||||
""" Returns the YouTube score in a svg image. """
|
""" Returns the YouTube score in a svg image. """
|
||||||
|
|
||||||
if channel in channels:
|
if channel in channels:
|
||||||
return f"""
|
return f"""
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
|
||||||
@ -67,8 +68,8 @@ def img_channel(channel):
|
|||||||
font-family: "Segoe UI", Ubuntu, Sans-Serif;
|
font-family: "Segoe UI", Ubuntu, Sans-Serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}}
|
}}
|
||||||
</style>
|
</style>
|
||||||
<rect x="0.5" y="0.5" height="99%" width="51" fill="none"/>
|
<rect x="0.5" y="0.5" height="99%" width="51" fill="none"/>
|
||||||
<g>
|
<g>
|
||||||
<text x="5" y="17" fill="#00b4f0" class="text">
|
<text x="5" y="17" fill="#00b4f0" class="text">
|
||||||
{channels[channel]}
|
{channels[channel]}
|
||||||
|
Loading…
Reference in New Issue
Block a user