Admin: offene Partner-Profil-Freigaben in 'Zu erledigen'-Leiste + ADMIN_EMAIL-Befund
Rene reichte ein Partner-Profil ein und sah als Admin nirgends einen Hinweis: 1. Action-Items kannten Partner-Profile nicht — partner_profiles_pending (submitted_at gesetzt, approved=0) jetzt im Endpoint + Chip im Admin-Kopf (Klick -> Partner-Tab). Test ergänzt (7 passed). 2. ADMIN_EMAIL fehlte in BEIDEN .env auf der DS (Prod+Staging) — damit wurden auch Upgrade-Anfragen-Mails still verschluckt (bekanntes Silent-Skip-Muster). Auf der DS nachgetragen; greift je beim nächsten Deploy.
This commit is contained in:
parent
73ca66bbf5
commit
a40aa183ec
8 changed files with 36 additions and 16 deletions
|
|
@ -152,6 +152,12 @@ async def action_items(user=Depends(require_mod)):
|
|||
).fetchone()[0]
|
||||
except Exception:
|
||||
invoices_unpaid = 0
|
||||
try:
|
||||
partner_profiles_pending = conn.execute(
|
||||
"SELECT COUNT(*) FROM partner_profiles WHERE submitted_at IS NOT NULL AND approved=0"
|
||||
).fetchone()[0]
|
||||
except Exception:
|
||||
partner_profiles_pending = 0
|
||||
return {
|
||||
"jobs_pending": jobs,
|
||||
"breeder_pending": breeders,
|
||||
|
|
@ -161,6 +167,7 @@ async def action_items(user=Depends(require_mod)):
|
|||
"users_today": users_today,
|
||||
"upgrades_pending": upgrades_pending,
|
||||
"invoices_unpaid": invoices_unpaid,
|
||||
"partner_profiles_pending": partner_profiles_pending,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue