Spaces:
Runtime error
Runtime error
danielraynaud
commited on
Update performance_analyzer.py
Browse files- performance_analyzer.py +2 -2
performance_analyzer.py
CHANGED
@@ -13,7 +13,7 @@ class PerformanceAnalyzer:
|
|
13 |
FROM study_progress
|
14 |
WHERE user_id = ?
|
15 |
GROUP BY topic
|
16 |
-
|
17 |
return dict(cursor.fetchall())
|
18 |
except Exception as e:
|
19 |
logging.error(f"Erro ao analisar performance: {e}")
|
@@ -27,7 +27,7 @@ class PerformanceAnalyzer:
|
|
27 |
FROM study_progress
|
28 |
WHERE user_id = ? AND performance_score < 70
|
29 |
GROUP BY topic
|
30 |
-
|
31 |
return [row['topic'] for row in cursor.fetchall()]
|
32 |
except Exception as e:
|
33 |
logging.error(f"Erro ao buscar áreas fracas: {e}")
|
|
|
13 |
FROM study_progress
|
14 |
WHERE user_id = ?
|
15 |
GROUP BY topic
|
16 |
+
''', (user_id,))
|
17 |
return dict(cursor.fetchall())
|
18 |
except Exception as e:
|
19 |
logging.error(f"Erro ao analisar performance: {e}")
|
|
|
27 |
FROM study_progress
|
28 |
WHERE user_id = ? AND performance_score < 70
|
29 |
GROUP BY topic
|
30 |
+
''', (user_id,))
|
31 |
return [row['topic'] for row in cursor.fetchall()]
|
32 |
except Exception as e:
|
33 |
logging.error(f"Erro ao buscar áreas fracas: {e}")
|