Spaces:
Runtime error
Runtime error
Update performance_analyzer.py
Browse files- performance_analyzer.py +2 -2
performance_analyzer.py
CHANGED
@@ -5,9 +5,9 @@ logging.basicConfig(level=logging.INFO)
|
|
5 |
logger = logging.getLogger(__name__)
|
6 |
|
7 |
class PerformanceAnalyzer:
|
8 |
-
def __init__(self, db_connection): #
|
9 |
self.conn = db_connection
|
10 |
-
|
11 |
def analyze_user_performance(self, user_id: str) -> Dict:
|
12 |
try:
|
13 |
cursor = self.conn.cursor()
|
|
|
5 |
logger = logging.getLogger(__name__)
|
6 |
|
7 |
class PerformanceAnalyzer:
|
8 |
+
def __init__(self, db_connection): # Construtor que aceita a conexão do banco
|
9 |
self.conn = db_connection
|
10 |
+
|
11 |
def analyze_user_performance(self, user_id: str) -> Dict:
|
12 |
try:
|
13 |
cursor = self.conn.cursor()
|