diff --git a/files/__main__.py b/files/__main__.py index 946e02b5a..1b0e738cc 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -31,7 +31,7 @@ app.wsgi_app = ProxyFix(app.wsgi_app, x_for=3) app.url_map.strict_slashes = False app.config["SITE_NAME"]=environ.get("SITE_NAME").strip() -app.config["coins_name"]=environ.get("SITE_NAME").strip() +app.config["coins_name"]=environ.get("coins_name").strip() app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['DATABASE_URL'] = environ.get("DATABASE_CONNECTION_POOL_URL",environ.get("DATABASE_URL")) diff --git a/files/helpers/images.py b/files/helpers/images.py index 5d4a50c0c..235704a92 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -38,9 +38,7 @@ def upload_file(file=None, resize=False, png=False): req = requests.post('https://api.imgur.com/3/upload.json', headers = {"Authorization": f"Client-ID {imgurkey}"}, data=data) resp = req.json()['data'] url = resp['link'].replace(".png", "_d.png").replace(".jpg", "_d.jpg").replace(".jpeg", "_d.jpeg") + "?maxwidth=9999" - except: - print(req.text) - return + except: return new_image = Image(text=url, deletehash=resp["deletehash"]) g.db.add(new_image)