Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1613,8 +1613,7 @@ class EnhancedProfileManager:
|
|
| 1613 |
if learning_style_match:
|
| 1614 |
study_plan = academic_analyzer.generate_study_plan(
|
| 1615 |
transcript,
|
| 1616 |
-
learning_style_match.group(1)
|
| 1617 |
-
)
|
| 1618 |
|
| 1619 |
# Prepare data with encryption for sensitive fields
|
| 1620 |
data = {
|
|
@@ -1624,7 +1623,7 @@ class EnhancedProfileManager:
|
|
| 1624 |
"transcript": transcript, # Already sanitized during parsing
|
| 1625 |
"learning_style": learning_style,
|
| 1626 |
"favorites": favorites,
|
| 1627 |
-
"blog": self.encryptor.encrypt(sanitize_input(blog))
|
| 1628 |
"study_plan": study_plan if study_plan else {},
|
| 1629 |
"session_token": self.current_session,
|
| 1630 |
"last_updated": time.time(),
|
|
|
|
| 1613 |
if learning_style_match:
|
| 1614 |
study_plan = academic_analyzer.generate_study_plan(
|
| 1615 |
transcript,
|
| 1616 |
+
learning_style_match.group(1))
|
|
|
|
| 1617 |
|
| 1618 |
# Prepare data with encryption for sensitive fields
|
| 1619 |
data = {
|
|
|
|
| 1623 |
"transcript": transcript, # Already sanitized during parsing
|
| 1624 |
"learning_style": learning_style,
|
| 1625 |
"favorites": favorites,
|
| 1626 |
+
"blog": self.encryptor.encrypt(sanitize_input(blog)) if blog else "",
|
| 1627 |
"study_plan": study_plan if study_plan else {},
|
| 1628 |
"session_token": self.current_session,
|
| 1629 |
"last_updated": time.time(),
|