diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index be908ce1..e970b371 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 caacc4c5..df7f4157 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 0e896c68..426a8c0b 100644 --- a/osinaweb/osinacore/custom_context.py +++ b/osinaweb/osinacore/custom_context.py @@ -21,12 +21,6 @@ def utilities(request): # Get the time difference in minutes minutes_ago = time_difference.total_seconds() / 60 minutes_ago = int(minutes_ago) - - # Check if it's 60 minutes or more - if minutes_ago >= 60: - # Calculate the time difference in hours - hours_ago = minutes_ago // 60 - return f'{hours_ago} hour{"s" if hours_ago > 1 else ""} ago' elif request.user.is_authenticated: open_task_count = Task.objects.filter(assigned_to=request.user.staffprofile, status='Open').count() @@ -45,11 +39,6 @@ def utilities(request): minutes_ago = time_difference.total_seconds() / 60 minutes_ago = int(minutes_ago) - # Check if it's 60 minutes or more - if minutes_ago >= 60: - # Calculate the time difference in hours - hours_ago = minutes_ago // 60 - return f'{hours_ago} hour{"s" if hours_ago > 1 else ""} ago' else: # Handle the case when the user is not logged in open_task_count = 0