Compare commits

..

No commits in common. "f7f27311dba52ad50f3011fa1c6149fbbc2701de" and "795475fe155ca511bcf51d48365a136f4e838c63" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@ from ..database import db
class Image(db.Model, ModelSerializeMixin):
__tablename__ = "image"
id: int = db.Column("id", Serial, primary_key=True)
filename_: str = db.Column(db.String(127), nullable=False)
filename_: str = db.Column(db.String(30), nullable=False)
mimetype_: str = db.Column(db.String(30), nullable=False)
thumbnail_: str = db.Column(db.String(127))
path_: str = db.Column(db.String(127))

View File

@ -8,7 +8,7 @@ from flaschengeist import logger
from flaschengeist.controller import userController
from flaschengeist.controller.imageController import send_image, send_thumbnail
from flaschengeist.plugins import Plugin
from flaschengeist.utils.decorators import login_required, extract_session, headers
from flaschengeist.utils.decorators import login_required, extract_session
from flaschengeist.utils.HTTP import no_content
from . import models
@ -738,7 +738,6 @@ def set_picture(identifier, current_session):
@PriceListPlugin.blueprint.route("/drinks/<int:identifier>/picture", methods=["GET"])
#@headers({"Cache-Control": "private, must-revalidate"})
def _get_picture(identifier):
"""Get Picture