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:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user