Skip to content

Commit 32768d6

Browse files
committed
fix: Improve formatting of flash message in add miniature function
1 parent 8f3de02 commit 32768d6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/blueprints/miniatures.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def add():
102102
.scalar()
103103
) or 0
104104
next_unique = max_unique + 1
105-
105+
106106
# Preserve all form fields and suggest next ID
107107
prefill = {
108108
"series": series,
@@ -114,7 +114,10 @@ def add():
114114
"tray_id": form.get("tray_id"),
115115
"notes": form.get("notes"),
116116
}
117-
flash(f"Unique ID {unique_id} already exists in Series {series}. Suggested next ID: {next_unique}", "danger")
117+
flash(
118+
f"Unique ID {unique_id} already exists in Series {series}. Suggested next ID: {next_unique}",
119+
"danger",
120+
)
118121
return render_template("miniatures/add.html", prefill=prefill)
119122

120123
add_miniature(data)

0 commit comments

Comments
 (0)