Bundles feature WIP + fix request-access products cap (20 -> 200)
- app/main.py: raise products_raw[:20] cap to [:200] in /api/request-access and /api/request-more-access - was silently truncating access requests with more than 20 selected products - accumulated bundles/product-page WIP (config, models, runtime, templates) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,7 @@ class Service(Base):
|
||||
svc_password: Mapped[str] = mapped_column(String(256), default="")
|
||||
svc_cred_hint: Mapped[str] = mapped_column(Text, default="")
|
||||
icon_path: Mapped[str] = mapped_column(Text, default="")
|
||||
seo_description: Mapped[str] = mapped_column(Text, default="")
|
||||
active: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
warm_pool_size: Mapped[int] = mapped_column(Integer, default=0)
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
@@ -130,3 +131,9 @@ class PendingAccessRequest(Base):
|
||||
portal_url: Mapped[str] = mapped_column(String(256), default="")
|
||||
status: Mapped[str] = mapped_column(String(16), default="pending")
|
||||
created_at: Mapped[dt.datetime] = mapped_column(DateTime(timezone=True), default=lambda: dt.datetime.now(dt.timezone.utc))
|
||||
# Telegram delivery tracking: the notification is sent once when the
|
||||
# request is created; if that attempt fails (tel.4mont.ru down/timeout),
|
||||
# a background retry loop resends telegram_message every 5 minutes until
|
||||
# it succeeds, without recomputing geo/IP each time.
|
||||
telegram_notified: Mapped[bool] = mapped_column(Boolean, default=False)
|
||||
telegram_message: Mapped[str] = mapped_column(Text, default="")
|
||||
|
||||
Reference in New Issue
Block a user