diff --git a/aiScanner/templates/aiScanner/scanner.html b/aiScanner/templates/aiScanner/scanner.html index 1711cca07..3a9289277 100644 --- a/aiScanner/templates/aiScanner/scanner.html +++ b/aiScanner/templates/aiScanner/scanner.html @@ -32,7 +32,7 @@ AI Security Scanner - CyberPanel {% endif %} - {% if not is_payment_configured and not vps_info.is_vps %} + {% if not is_payment_configured and not vps_info.is_vps|default:False|default:False %}
Great news! Your CyberPanel VPS hosting includes {{ vps_info.free_scans_available }} free AI security scans this month ({{ vps_info.scans_used_this_month }}/{{ vps_info.free_scans_per_month }} used).
+Great news! Your CyberPanel VPS hosting includes {{ vps_info.free_scans_available|default:0 }} free AI security scans this month ({{ vps_info.scans_used_this_month|default:0 }}/{{ vps_info.free_scans_per_month|default:0 }} used).
{% if not is_payment_configured %}You can still add a payment method below for additional scans beyond your free allowance.
{% endif %}You've used all {{ vps_info.free_scans_per_month }} free AI security scans for this month. Setup payment to continue scanning.
+You've used all {{ vps_info.free_scans_per_month|default:0 }} free AI security scans for this month. Setup payment to continue scanning.
Free Scans Available
{% if is_payment_configured %} Plus ${{ current_balance|floatformat:4 }} credit @@ -161,7 +161,7 @@ AI Security Scanner - CyberPanel- Payment setup is optional for VPS users. You have {{ vps_info.free_scans_available }} free scans available. + Payment setup is optional for VPS users. You have {{ vps_info.free_scans_available|default:0 }} free scans available.
{% else %}@@ -231,13 +231,13 @@ AI Security Scanner - CyberPanel