From 8bc8ed47aba96e650ad44a6cdf65bce9ad35a5b9 Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Sun, 15 Mar 2020 16:13:59 +0100 Subject: [PATCH] fixed typo in error message, when direct called --- api.py | 2 +- deletelink.py | 2 +- githubcallback.py | 2 +- googlecallback.py | 2 +- grecaptcha_verify.py | 2 +- login.py | 2 +- makeqr.py | 2 +- newurl.py | 2 +- redirectShortenURL.py | 2 +- table_check.py | 2 +- userprofile.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api.py b/api.py index 142c693..ebc4455 100644 --- a/api.py +++ b/api.py @@ -93,5 +93,5 @@ def apiPost(request, url_scheme, domain, sAPI, passwordProtected, password): ) if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/deletelink.py b/deletelink.py index 0a91afc..a82cb19 100644 --- a/deletelink.py +++ b/deletelink.py @@ -22,5 +22,5 @@ def deleteLink(request, s): abort(500) #return internal server error, if something fails if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/githubcallback.py b/githubcallback.py index 133991c..68df6f7 100644 --- a/githubcallback.py +++ b/githubcallback.py @@ -23,5 +23,5 @@ def githubCallback(request, GITHUB_CLIENT_SECRET, GITHUB_CLIENT_ID, s): print("Authentication failed") if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/googlecallback.py b/googlecallback.py index 1187e68..2910bfb 100644 --- a/googlecallback.py +++ b/googlecallback.py @@ -21,5 +21,5 @@ def googleCallback(request, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, url_scheme, print("Authentication failed") if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/grecaptcha_verify.py b/grecaptcha_verify.py index 2c0e162..4afe778 100644 --- a/grecaptcha_verify.py +++ b/grecaptcha_verify.py @@ -13,5 +13,5 @@ def grecaptcha_verify(request, skipCaptcha, recaptchaPrivateKey): #This function return response if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/login.py b/login.py index 7b64d51..4914128 100644 --- a/login.py +++ b/login.py @@ -8,5 +8,5 @@ def login(request, GITHUB_CLIENT_ID, cookieNotice, GOOGLE_CLIENT_ID, url_scheme, return render_template("login.html", cookieNotice=cookieNotice) if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/makeqr.py b/makeqr.py index b3440dd..d05bf7f 100644 --- a/makeqr.py +++ b/makeqr.py @@ -20,5 +20,5 @@ def makeQR(text): #This function is used to create a QR code and encode it base6 return b64encode(buffer.getvalue()).decode() if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/newurl.py b/newurl.py index da9ce73..2ee4433 100644 --- a/newurl.py +++ b/newurl.py @@ -43,5 +43,5 @@ def newurl(request, skipCaptcha, recaptchaPrivateKey, recaptchaPublicKey, buildd return render_template('home.html', builddate=builddate, version=version, recaptchaPublicKey=recaptchaPublicKey, domain=domain_prepared, snackbar="URL already used, please try another one", long_url_prefilled=request.form.get('url'), short_url_prefilled=request.form.get('short').lower(), domain_prefilled=domain_to_index[request.form.get('domain')], showDomainSelect=showDomainSelect, loginbar=loginbar, cookieNotice=cookieNotice, loginEnabled=loginEnabled) #return the user the prefilled form with an error message, because the url was already used if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/redirectShortenURL.py b/redirectShortenURL.py index c0ee3b3..c099602 100644 --- a/redirectShortenURL.py +++ b/redirectShortenURL.py @@ -32,5 +32,5 @@ def redirectShortenURL(request, short_url): abort(404) #Serve de default not found page. if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/table_check.py b/table_check.py index 0f97a72..8c77d73 100644 --- a/table_check.py +++ b/table_check.py @@ -26,5 +26,5 @@ def table_check(): #This function is used on start to make a new Database if not pass if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file diff --git a/userprofile.py b/userprofile.py index f8685db..9f2496c 100644 --- a/userprofile.py +++ b/userprofile.py @@ -46,5 +46,5 @@ def userProfile(request, cookieNotice, s, pageNumber, url_scheme): return render_template('editEntries.html', content=response, loginbar=loginbar, cookieNotice=cookieNotice, backButton=backButton, nextButton=nextButton) #Put the table and the login div inside the template and server it to the user if (__name__ == "__main__"): - print("This file is not made fore direct call, please run the main.py") + print("This file is not made for direct call, please run the main.py") exit() \ No newline at end of file -- GitLab