Fixes: 1) Replace failed daily stats with empty lists instead of crashing; 2) Fix inconsistent variable scoping and cleanup; Extra: 1) Refactor daily stats logic to handle exceptions gracefully; 2) Improve readability by grouping related metrics; 3) Add type annotations for new context variables. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| caches.py | ||
| celery.py | ||
| constance.py | ||
| csp.py | ||
| database.py | ||
| dbbackup.py | ||
| drf.py | ||
| elasticsearch.py | ||
| emailing.py | ||
| extensions.py | ||
| graphene.py | ||
| logconfig.py | ||
| summernote.py | ||
| unfold.py | ||