From 8e1c841379f9313e34f852f5008019027337feb6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 30 Aug 2025 08:15:56 -0400 Subject: [PATCH] tob bar clean up --- app/api/services/account.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/api/services/account.py b/app/api/services/account.py index 2c936bb..c9f6d7a 100644 --- a/app/api/services/account.py +++ b/app/api/services/account.py @@ -61,16 +61,20 @@ class AccountService(BaseService): next_bill = "End: 10/10/202" view_sub = "Upgrade Account" + contacts_count =0 # random.randint(0, 10) + appointments_count =0 + site_traffic_count =0 + bar_data = { "last_update": datetime.datetime.utcnow(), "top_bar": [ {"id": "1", "description": "Contacts", "last_update": "10-10-2010 11:00 AM", - "value": random.randint(0, 10), "data_span": 'Last 2 months', "link": "#", "extra_style": ''}, - {"id": "2", "description": "Site Traffic", "last_update": "10-10-2010 11:30 AM", - "value": random.randint(0, 10), "data_span": 'Past 12 hours', "link": "#", "extra_style": ''}, - {"id": "3", "description": "Appointments", "last_update": "10-12-2010 11:30 AM", - "value": random.randint(0, 10), "data_span": 'Last 14 days', "link": "#", "extra_style": ''}, + "value": contacts_count, "data_span": 'Last 2 months', "link": "/contacts", "extra_style": ''}, + {"id": "2", "description": "Appointments", "last_update": "10-12-2010 11:30 AM", + "value": appointments_count, "data_span": 'Last 14 days', "link": "/appointments", "extra_style": ''}, + {"id": "3", "description": "Site Traffic", "last_update": "10-10-2010 11:30 AM", + "value": site_traffic_count, "data_span": 'Past 12 hours', "link": "/reports/traffic", "extra_style": ''}, {"id": "4", "description": view_sub, "last_update": "10-12-2010 11:30 AM", "value": option_name, "data_span": next_bill, "link": "/subscription", "extra_style": " billing "}