Grotti 3.4.0: Dateien umbenennen, Bedarf/PLA-Match, Pause- und gklib-Fixes.

This commit is contained in:
Dominic Gundel committed 2026-10-18 21:36:12 +02:00
1 parent 67a89d1794
commit dd0e7ebc6b
16 files changed
+430 -58

No files matched your search

+8
View File
@@ -1233,6 +1233,14 @@ def create_app(cfg):
moved = library.move_file(conn(), cfg, file_id, folder)
return jsonify(moved)
@app.post("/api/v1/dateien/<int:file_id>/umbenennen")
def file_rename(file_id):
data = body()
name = (data.get("name") or "").strip()
if not name:
raise GrottiError("Neuer Dateiname fehlt.", "datei")
return jsonify(library.rename_library_file(conn(), cfg, file_id, name))
@app.post("/api/v1/dateien")
def file_upload():
upload = request.files.get("file")