Sync developer notifications from JSON file to database.
(self)
| 41 | self._sync_developer_notifications() |
| 42 | |
| 43 | def _sync_developer_notifications(self): |
| 44 | """Sync developer notifications from JSON file to database.""" |
| 45 | from django.db import connection |
| 46 | import logging |
| 47 | |
| 48 | logger = logging.getLogger(__name__) |
| 49 | |
| 50 | |
| 51 | try: |
| 52 | from core.developer_notifications import sync_developer_notifications |
| 53 | sync_developer_notifications() |
| 54 | except Exception as e: |
| 55 | logger.warning(f"Failed to sync developer notifications on startup: {e}") |
| 56 |
no test coverage detected