Spaces:
Sleeping
Sleeping
Update the inverted completion status bug
Browse files
app.py
CHANGED
|
@@ -107,7 +107,10 @@ def generate_sentences(data):
|
|
| 107 |
if any(a["email"] == email for a in task.get("assignedTo", []))
|
| 108 |
]
|
| 109 |
if assigned_tasks:
|
| 110 |
-
task_details = ", ".join(
|
|
|
|
|
|
|
|
|
|
| 111 |
user_sentences[email]["Modules & Tasks"].append(f"Tasks assigned to {username} in {module_name}: {task_details}.")
|
| 112 |
|
| 113 |
# Find documents in this project
|
|
|
|
| 107 |
if any(a["email"] == email for a in task.get("assignedTo", []))
|
| 108 |
]
|
| 109 |
if assigned_tasks:
|
| 110 |
+
task_details = ", ".join(
|
| 111 |
+
f'"{t["taskName"]}" (Status: {"Inactive" if t.get("status", False) else "Active"})'
|
| 112 |
+
for t in assigned_tasks
|
| 113 |
+
)
|
| 114 |
user_sentences[email]["Modules & Tasks"].append(f"Tasks assigned to {username} in {module_name}: {task_details}.")
|
| 115 |
|
| 116 |
# Find documents in this project
|