Compare commits

..

No commits in common. "0d6326a7aa3b09f7ecf2697cecdbf045f416ba6f" and "997485297543a6cad91785270665297036a6d8d1" have entirely different histories.

3 changed files with 2 additions and 8 deletions

View file

@ -33,11 +33,11 @@ dependencies = [
"django-environ==0.12.0",
"django-probes==1.7.0",
"Pillow==11.1.0",
"psycopg==3.2.5",
"psycopg==3.2.4",
"requests==2.32.3",
"rcssmin==1.2.1",
"rjsmin==1.2.4",
"social-auth-core==4.5.6",
"social-auth-core==4.5.4",
"social-auth-app-django==5.4.2",
]

View file

@ -183,7 +183,6 @@ def test_stats_empty(client):
"maps_count": 0,
"users_active_last_week_count": 0,
"users_count": 0,
"active_sessions": 0,
"version": VERSION,
}
@ -200,7 +199,6 @@ def test_stats_basic(client, map, datalayer, user2):
"maps_count": 1,
"users_active_last_week_count": 1,
"users_count": 2,
"active_sessions": 0,
"version": VERSION,
}

View file

@ -19,7 +19,6 @@ from django.contrib.auth import BACKEND_SESSION_KEY, get_user_model
from django.contrib.auth import logout as do_logout
from django.contrib.gis.measure import D
from django.contrib.postgres.search import SearchQuery, SearchVector
from django.contrib.sessions.models import Session
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.exceptions import PermissionDenied
from django.core.mail import send_mail
@ -1383,9 +1382,6 @@ def stats(request):
"users_active_last_week_count": User.objects.filter(
last_login__gt=last_week
).count(),
"active_sessions": Session.objects.filter(
expire_date__gt=datetime.utcnow()
).count(),
}
)