06/15 Phase 3 codes

This commit is contained in:
2026-06-15 14:19:14 -04:00
parent c2064b84b4
commit 60526262f0
20 changed files with 802 additions and 7 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ def create():
category = None
if request.method == "POST" and form.category_id.data:
category = Category.query.get(form.category_id.data)
category = db.session.get(Category, form.category_id.data)
if form.validate_on_submit() and category:
raw_attrs = _parse_attributes(category)
@@ -156,7 +156,7 @@ def edit(listing_id):
form.price.data = (listing.price_cents / 100) if listing.price_cents else None
form.zip.data = listing.zip
category = Category.query.get(form.category_id.data or listing.category_id)
category = db.session.get(Category, form.category_id.data or listing.category_id)
if form.validate_on_submit() and category:
raw_attrs = _parse_attributes(category)