Remove flash from the printer class, update web class

This commit is contained in:
nono
2025-10-16 18:36:16 +02:00
committed by n07070
parent 5207fa5b4e
commit 11a5dc3587
2 changed files with 9 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ class Web(object):
self.app.logger.error(e)
flash("Error while printing the SMS : "+ str(e))
flash("You message has been printed :)")
flash("You message " + str( texte ) + " has been printed :)")
def print_image(self, image, sign: str):
@@ -57,7 +57,7 @@ class Web(object):
self.app.logger.debug("File saved")
except Exception as e:
self.app.logger.error("Could not save file")
flash(e,'error')
flash(str(e),'error')
return False
self.app.logger.debug("File saved to " + str(os.path.join(self.app.config['UPLOAD_FOLDER'], filename)))