From 42ef824050a8009fd13a5bc96c3aaec7a2047489 Mon Sep 17 00:00:00 2001 From: Jose De Freitas Date: Sun, 28 Feb 2021 16:18:51 -0500 Subject: [PATCH] Fix links for now --- readme.md | 2 +- voter/api/api.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 3af32ca..de0a7cb 100644 --- a/readme.md +++ b/readme.md @@ -52,7 +52,7 @@ There're a lot of programming languages out there. In this section, you can find [Tech With Tim channel's avatar](https://www.youtube.com/c/TechWithTim) -[**Tech With Tim**](https://www.youtube.com/c/TechWithTim) [Badge for verified YouTube channels](badges.md#verified-youtube-channel) [Badge for youtubers that upload videos weekly](badges.md#weekly-video-upload) [Downvote icon](/channels?name=Tech+With+Tim&vote=downvote) [Upvote icon](/channels?name=Tech+With+Tim&vote=upvote) \ +[**Tech With Tim**](https://www.youtube.com/c/TechWithTim) [Badge for verified YouTube channels](badges.md#verified-youtube-channel) [Badge for youtubers that upload videos weekly](badges.md#weekly-video-upload) [Downvote icon](#contents) [Upvote icon](#contents) \ Content about: Python, Other about tech \ Featured playlists: `Python Machine Learning Tutorials`, `Python Programming Tutorials`, `Kivy Tutorials Python`, `and other Python playlists`. diff --git a/voter/api/api.py b/voter/api/api.py index d7a0c1c..cf673c1 100644 --- a/voter/api/api.py +++ b/voter/api/api.py @@ -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":