Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -117,14 +117,14 @@ async def generate_roadmap(input_data: RoadmapInput):
|
|
117 |
phy = remove_completed_chapters(phy, input_data.completed_phy_chapters)
|
118 |
chem = remove_completed_chapters(chem, input_data.completed_chem_chapters)
|
119 |
maths = remove_completed_chapters(maths, input_data.completed_maths_chapters)
|
120 |
-
|
121 |
-
print(chem)
|
122 |
-
print(maths)
|
123 |
# Get topics within timeframe
|
124 |
physics_topics = get_topics_within_timeframe(phy, input_data.total_time, input_data.startphyRoadmapFrom)
|
125 |
chemistry_topics = get_topics_within_timeframe(chem, input_data.total_time, input_data.startchemRoadmapFrom)
|
126 |
mathematics_topics = get_topics_within_timeframe(maths, input_data.total_time, input_data.startmathRoadmapFrom)
|
127 |
-
|
|
|
|
|
128 |
for topic in reversed(input_data.userleft_topic_phy):
|
129 |
physics_topics.insert(0, topic)
|
130 |
for topic in reversed(input_data.userleft_topic_chem):
|
|
|
117 |
phy = remove_completed_chapters(phy, input_data.completed_phy_chapters)
|
118 |
chem = remove_completed_chapters(chem, input_data.completed_chem_chapters)
|
119 |
maths = remove_completed_chapters(maths, input_data.completed_maths_chapters)
|
120 |
+
|
|
|
|
|
121 |
# Get topics within timeframe
|
122 |
physics_topics = get_topics_within_timeframe(phy, input_data.total_time, input_data.startphyRoadmapFrom)
|
123 |
chemistry_topics = get_topics_within_timeframe(chem, input_data.total_time, input_data.startchemRoadmapFrom)
|
124 |
mathematics_topics = get_topics_within_timeframe(maths, input_data.total_time, input_data.startmathRoadmapFrom)
|
125 |
+
print(physics_topics)
|
126 |
+
print(chemistry_topics)
|
127 |
+
print(mathematics_topics)
|
128 |
for topic in reversed(input_data.userleft_topic_phy):
|
129 |
physics_topics.insert(0, topic)
|
130 |
for topic in reversed(input_data.userleft_topic_chem):
|