diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 0cf22f23..8b9a73a1 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc b/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc index 63c1e8bd..9754ae29 100644 Binary files a/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/custom_context.cpython-310.pyc differ diff --git a/osinaweb/osinacore/custom_context.py b/osinaweb/osinacore/custom_context.py index c4c791a3..a8189065 100644 --- a/osinaweb/osinacore/custom_context.py +++ b/osinaweb/osinacore/custom_context.py @@ -18,6 +18,7 @@ def utilities(request): closed_tickets = None latest_statuses = None last_status = None + today = timezone.now() if request.user.is_authenticated and StaffProfile.objects.filter(user=request.user): notes = Note.objects.filter(user=request.user).order_by('-date')[:6] @@ -86,7 +87,6 @@ def utilities(request): ticket.unread_updates_count = unread_updates_count - today = timezone.now() latest_statuses = Status.objects.filter(date_time__date=today).order_by('-id') last_status = Status.objects.filter(staff=request.user.staffprofile).last()