feat: import additional exchange sections
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 2m41s
CI/CD Pipeline / Run Tests (push) Successful in 2m47s
CI/CD Pipeline / Build Docker Images (push) Successful in 2m24s
CI/CD Pipeline / Push to Gitea Registry (push) Successful in 0s
CI/CD Pipeline / Deploy to Server (push) Successful in 0s

This commit is contained in:
2026-05-12 15:19:26 +02:00
parent ed34603116
commit bd8e1a8400
25 changed files with 1117 additions and 72 deletions

View File

@@ -249,16 +249,19 @@ class AdminUsersManagementView(APIView):
return
latest_jobs: dict[int, BackgroundJob] = {}
jobs = BackgroundJobService.get_queryset().filter(
user_id__in=user_ids
).annotate(
_effective_job_ts=Coalesce(
F("completed_at"),
F("started_at"),
F("updated_at"),
F("created_at"),
jobs = (
BackgroundJobService.get_queryset()
.filter(user_id__in=user_ids)
.annotate(
_effective_job_ts=Coalesce(
F("completed_at"),
F("started_at"),
F("updated_at"),
F("created_at"),
)
)
).order_by("user_id", "-_effective_job_ts")
.order_by("user_id", "-_effective_job_ts")
)
for job in jobs:
if job.user_id not in latest_jobs: