fix: resolve mypy and djlint CI failures

- app/utils/subscription.py: add Any type annotation to _scalar_count()
  query parameter (mypy no-untyped-def error at line 316)
- frontend/templates/admin_plans.html: remove empty <div></div> at line 344
  (djlint H020 empty tag pair error)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-06 21:09:44 +00:00
parent ea7fffa3a1
commit ab532b55dc
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ def _today_utc() -> date:
return datetime.now(timezone.utc).date()
def _scalar_count(query) -> int:
def _scalar_count(query: Any) -> int:
"""Execute a count query and return an int, defaulting to 0 for NULL."""
return query.scalar() or 0
-1
View File
@@ -341,7 +341,6 @@
<span class="text-xs text-gray-400">Coming soon</span>
</div>
</div>
<div></div>
<div class="relative">
<label class="block text-sm font-medium text-gray-700 mb-1">Overage price / doc ($)</label>
<input type="number" disabled placeholder="Coming soon"