Webapp hardening + perf / CSP nonce-only / plugin-builder API guard + token autogen / cookie Secure / XSS fixes (QR, postMessage) / auth-me SWR dedup / SSR fetch cache / entry-capture redesign (gift/partner/referral) / payment webhooks (yoomoney sign, tribute trb_user_id) / email-only partners+referrals / INSTALL guide
This commit is contained in:
@@ -89,7 +89,7 @@ async def count_unread_for_identity(
|
||||
.select_from(WebNotification)
|
||||
.where(
|
||||
WebNotification.identity_id == identity_id,
|
||||
WebNotification.read is False,
|
||||
WebNotification.read == False, # noqa: E712 SQLAlchemy expression
|
||||
)
|
||||
)
|
||||
return result.scalar() or 0
|
||||
@@ -103,7 +103,7 @@ async def mark_all_read_for_identity(
|
||||
update(WebNotification)
|
||||
.where(
|
||||
WebNotification.identity_id == identity_id,
|
||||
WebNotification.read is False,
|
||||
WebNotification.read == False, # noqa: E712 SQLAlchemy expression
|
||||
)
|
||||
.values(read=True)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user