Fix links for now

This commit is contained in:
Jose De Freitas 2021-02-28 16:18:51 -05:00
parent 47f95b88c5
commit 42ef824050
2 changed files with 6 additions and 3 deletions

View File

@ -52,7 +52,7 @@ There're a lot of programming languages out there. In this section, you can find
[<img align="left" height="94px" width="94px" alt="Tech With Tim channel's avatar" src="https://yt3.ggpht.com/a/AATXAJwAyCZGleVpp_e-jurqWYsH-6Q4rZaKVeareXRK7A=s88-c-k-c0x00ffffff-no-rj"/>](https://www.youtube.com/c/TechWithTim)
[**Tech With Tim**](https://www.youtube.com/c/TechWithTim) [<img height="16px" width="16px" alt="Badge for verified YouTube channels" src="media/badge-verified.svg" title="Is a verified YouTube channel"/>](badges.md#verified-youtube-channel) [<img height="16px" width="16px" alt="Badge for youtubers that upload videos weekly" src="media/badge-weekly.svg" title="Uploads videos weekly"/>](badges.md#weekly-video-upload) [<img align="right" width="16" height="16" src="media/arrow-down.svg" alt="Downvote icon", title="Downvote this YouTuber">](/channels?name=Tech+With+Tim&vote=downvote) [<img align="right" width="16" height="16" src="media/arrow-up.svg" alt="Upvote icon", title="Upvote this YouTuber">](/channels?name=Tech+With+Tim&vote=upvote) \
[**Tech With Tim**](https://www.youtube.com/c/TechWithTim) [<img height="16px" width="16px" alt="Badge for verified YouTube channels" src="media/badge-verified.svg" title="Is a verified YouTube channel"/>](badges.md#verified-youtube-channel) [<img height="16px" width="16px" alt="Badge for youtubers that upload videos weekly" src="media/badge-weekly.svg" title="Uploads videos weekly"/>](badges.md#weekly-video-upload) [<img align="right" width="16" height="16" src="media/arrow-down.svg" alt="Downvote icon", title="Downvote this YouTuber">](#contents) [<img align="right" width="16" height="16" src="media/arrow-up.svg" alt="Upvote icon", title="Upvote this YouTuber">](#contents) \
Content about: Python, Other about tech \
Featured playlists: `Python Machine Learning Tutorials`, `Python Programming Tutorials`, `Kivy Tutorials Python`, `and other Python playlists`.

View File

@ -24,8 +24,11 @@ def get_channel():
if "name" in request.args and "vote" in request.args:
name = str(request.args["name"])
vote = str(request.args["vote"])
else:
return "No name of channel and vote provided."
if "name" in request.args and "vote" not in request.args:
return vote
# else:
# return "No name of channel and vote provided."
if name in channels:
if vote == "upvote":