diff --git a/app/routes/user.py b/app/routes/user.py index a0e8b21..3193e38 100644 --- a/app/routes/user.py +++ b/app/routes/user.py @@ -41,16 +41,11 @@ def dashboard(): subscription_data = [] for sub in subscriptions: - remaining_time = None - if sub.expiry_time > datetime.utcnow(): - remaining_time = sub.expiry_time - datetime.utcnow() - subscription_data.append({ 'id': sub.id, 'status': sub.status.value, 'start_time': sub.start_time, 'expiry_time': sub.expiry_time, - 'remaining_time': str(remaining_time) if remaining_time else None, 'assigned_ip': sub.assigned_ip }) diff --git a/app/templates/user/dashboard.html b/app/templates/user/dashboard.html index c09a207..64ab0eb 100644 --- a/app/templates/user/dashboard.html +++ b/app/templates/user/dashboard.html @@ -27,24 +27,15 @@
Expires
-{{ active_subscription.expiry_time.strftime('%Y-%m-%d %H:%M UTC') }}
++ {{ active_subscription.expiry_time.strftime('%Y-%m-%d %H:%M UTC') }} +
Time Remaining
-{{ active_subscription.remaining_time }}
+Calculating...