Replace direct MarketPlace imports with MarketService calls
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 51s

Market CRUD in blog now delegates to services.market.create_marketplace()
and soft_delete_marketplace() instead of importing MarketPlace directly.
Adds TODO comments on Calendar imports in admin routes (deferred to
admin UI rework). Updates shared submodule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-19 05:44:11 +00:00
parent 6f063665b0
commit f9e39333bf
3 changed files with 11 additions and 46 deletions

View File

@@ -191,7 +191,7 @@ def register():
@require_admin
async def calendar_view(slug: str, calendar_id: int):
"""Show calendar month view for browsing entries"""
from shared.models.calendars import Calendar
from shared.models.calendars import Calendar # TODO: service method when admin UI is reworked
from sqlalchemy import select
from datetime import datetime, timezone
from quart import request
@@ -273,7 +273,7 @@ def register():
@require_admin
async def entries(slug: str):
from ..services.entry_associations import get_post_entry_ids
from shared.models.calendars import Calendar
from shared.models.calendars import Calendar # TODO: service method when admin UI is reworked
from sqlalchemy import select
post_id = g.post_data["post"]["id"]
@@ -309,7 +309,7 @@ def register():
@require_admin
async def toggle_entry(slug: str, entry_id: int):
from ..services.entry_associations import toggle_entry_association, get_post_entry_ids, get_associated_entries
from shared.models.calendars import Calendar
from shared.models.calendars import Calendar # TODO: service method when admin UI is reworked
from sqlalchemy import select
from quart import jsonify