12345678910111213 |
- from datetime import timedelta
- from django.conf import settings
- from django.utils import timezone
- def is_date_tracked(date, user, category_read_cutoff=None):
- if date:
- if category_read_cutoff and category_read_cutoff > date:
- return False
- else:
- return date > user.reads_cutoff
- else:
- return False
|