From 0c5e57935b7e740ba50da221b584a4ad7584f8ac Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Sat, 14 Mar 2020 21:34:51 +0100 Subject: [PATCH] removed version check (crash in offline enviorement) --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index ea69cc0..efe9491 100644 --- a/main.py +++ b/main.py @@ -211,9 +211,7 @@ def apiDocs(): def startup(production): table_check()# This code checks whether database table is created or not - versionServer = get("https://gitlab.jonasled.de/jonasled/url_shorter_docker/raw/master/VERSION").text - if(open("VERSION", "r").read() != versionServer): print("Different version on the server found. Your version: " + open("VERSION", "r").read() + ", server version: " + versionServer + ".") - + if production: #Check if production variable is set to true use the waitress webserver, else use the buildin flask webserver, with more debug output serve(app, host=host, port= 5000, url_scheme=url_scheme) #Start the production Webserver for all users on port 5000 else: -- GitLab