corrected time record type, mismatch caused issues and kept credential verification from occuring

This commit is contained in:
Bryan Van Deusen
2026-01-26 22:51:03 -05:00
parent 204e8efcdc
commit d2e4d6c588
4 changed files with 19 additions and 14 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
"""Download history API endpoints."""
from datetime import datetime
from quart import Blueprint, request, jsonify, current_app
from sqlalchemy import select, func, and_
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.orm import selectinload
from app.models.base import utcnow
from app.models.download import Download, DownloadStatus
from app.models.source import Source
from app.tasks.downloads import process_download
@@ -139,7 +139,7 @@ async def recent_activity():
days = int(request.args.get("days", 7))
from datetime import timedelta
cutoff = datetime.utcnow() - timedelta(days=days)
cutoff = utcnow() - timedelta(days=days)
async with current_app.db_engine.connect() as conn:
session = AsyncSession(bind=conn)