remotes/1693045480750635534/spooky-22
Aevann1 2021-07-23 18:10:37 +02:00
parent bd570f0863
commit a460d8bcde
2 changed files with 3 additions and 4 deletions

View File

@ -80,8 +80,6 @@ def upload_file(name, file, resize=None):
print(e)
print(req)
print(req.text)
if "File type invalid" in str(req.text): return "sex"
else: return
new_image = Image(
text=url,

View File

@ -34,10 +34,11 @@ def resize():
file.write(chunk)
image = upload_from_file("resizing", "resizing", (100, 100))
if image == "sex":
if image == None:
send_notification(1, u, "fail!")
u.resized = True
g.db.add(u)
elif image != None:
else:
u.profileurl = image
u.resized = True
g.db.add(u)