Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -348,12 +348,15 @@ def handle_smart_schedule(user_id, prompt):
|
|
| 348 |
c = COLOR.get(sm, "#6366f1")
|
| 349 |
deadline_str = ""
|
| 350 |
if task.get("deadline_date"):
|
| 351 |
-
deadline_str = f' | \u23f3 deadline {task["deadline_date"]}'
|
|
|
|
|
|
|
|
|
|
| 352 |
html += (
|
| 353 |
f'<div class="sched-card" style="border-left-color:{c};margin-bottom:6px">'
|
| 354 |
f'<div class="sched-title">{a.get("title","")}</div>'
|
| 355 |
-
f'<div class="sched-meta">{
|
| 356 |
-
f'<div class="sched-why">
|
| 357 |
f'</div>'
|
| 358 |
)
|
| 359 |
|
|
|
|
| 348 |
c = COLOR.get(sm, "#6366f1")
|
| 349 |
deadline_str = ""
|
| 350 |
if task.get("deadline_date"):
|
| 351 |
+
deadline_str = f' | \\u23f3 deadline {task["deadline_date"]}'
|
| 352 |
+
|
| 353 |
+
emdash = "—" # or "\u2014"
|
| 354 |
+
life_area = task.get("life_area", emdash)
|
| 355 |
html += (
|
| 356 |
f'<div class="sched-card" style="border-left-color:{c};margin-bottom:6px">'
|
| 357 |
f'<div class="sched-title">{a.get("title","")}</div>'
|
| 358 |
+
f'<div class="sched-meta">{life_area} · {sm} · {task.get("time_estimate","?")}min{deadline_str}</div>'
|
| 359 |
+
f'<div class="sched-why">💡 {a.get("reasoning","")}</div>'
|
| 360 |
f'</div>'
|
| 361 |
)
|
| 362 |
|