core: fix condition in task clean_expiring_models (#9603) Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
committed by
GitHub
parent
225d02d02d
commit
23bbb6e5ef
@ -55,7 +55,7 @@ def clean_expired_models(self: SystemTask):
|
||||
session.delete()
|
||||
amount += 1
|
||||
case "db":
|
||||
if (
|
||||
if not (
|
||||
DBSessionStore.get_model_class()
|
||||
.objects.filter(session_key=session.session_key, expire_date__gt=now())
|
||||
.exists()
|
||||
|
||||
Reference in New Issue
Block a user