Remove flash from the printer class, update web class
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user