Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,6 @@ import io
|
|
15 |
# Load environment variables
|
16 |
load_dotenv()
|
17 |
|
18 |
-
# Check for necessary environment variables
|
19 |
required_env_vars = ['SF_USERNAME', 'SF_PASSWORD', 'SF_SECURITY_TOKEN']
|
20 |
missing_vars = [var for var in required_env_vars if not os.getenv(var)]
|
21 |
if missing_vars:
|
@@ -219,10 +218,6 @@ def compare_dates(start_date, end_date):
|
|
219 |
else:
|
220 |
return "In Progress"
|
221 |
|
222 |
-
# Function to calculate progress
|
223 |
-
def calculate_progress(completed_tasks, total_tasks):
|
224 |
-
return completed_tasks, total_tasks
|
225 |
-
|
226 |
# Render bar chart (updated)
|
227 |
def render_bar_chart(completed, total):
|
228 |
fig, ax = plt.subplots(figsize=(4, 3))
|
|
|
15 |
# Load environment variables
|
16 |
load_dotenv()
|
17 |
|
|
|
18 |
required_env_vars = ['SF_USERNAME', 'SF_PASSWORD', 'SF_SECURITY_TOKEN']
|
19 |
missing_vars = [var for var in required_env_vars if not os.getenv(var)]
|
20 |
if missing_vars:
|
|
|
218 |
else:
|
219 |
return "In Progress"
|
220 |
|
|
|
|
|
|
|
|
|
221 |
# Render bar chart (updated)
|
222 |
def render_bar_chart(completed, total):
|
223 |
fig, ax = plt.subplots(figsize=(4, 3))
|