Test image getter

This commit is contained in:
Jose De Freitas 2021-03-01 09:53:43 -05:00
parent a4709a29ac
commit 2f78345cf4

View File

@ -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"