Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,8 @@ session_state = {
|
|
| 32 |
# AGENT 1
|
| 33 |
@asynccontextmanager
|
| 34 |
async def lifespan(app: FastAPI):
|
| 35 |
-
try
|
|
|
|
| 36 |
with open("fourdayRoadmap.json", "r") as f:
|
| 37 |
session_state["data"] = json.load(f)
|
| 38 |
with open("synthesized_full_roadmap.json", "r") as f:
|
|
@@ -60,8 +61,7 @@ app = FastAPI(
|
|
| 60 |
def process_task_data():
|
| 61 |
data = session_state["data"]
|
| 62 |
for day in data["schedule"]:
|
| 63 |
-
for subject in
|
| 64 |
-
day["subjects"]:
|
| 65 |
for task in subject["tasks"]:
|
| 66 |
task["task_completed"] = False
|
| 67 |
task["completion_timestamp"] = None
|
|
|
|
| 32 |
# AGENT 1
|
| 33 |
@asynccontextmanager
|
| 34 |
async def lifespan(app: FastAPI):
|
| 35 |
+
try
|
| 36 |
+
:
|
| 37 |
with open("fourdayRoadmap.json", "r") as f:
|
| 38 |
session_state["data"] = json.load(f)
|
| 39 |
with open("synthesized_full_roadmap.json", "r") as f:
|
|
|
|
| 61 |
def process_task_data():
|
| 62 |
data = session_state["data"]
|
| 63 |
for day in data["schedule"]:
|
| 64 |
+
for subject in day["subjects"]:
|
|
|
|
| 65 |
for task in subject["tasks"]:
|
| 66 |
task["task_completed"] = False
|
| 67 |
task["completion_timestamp"] = None
|