Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,12 @@ conn.commit()
|
|
| 28 |
conn.close()
|
| 29 |
|
| 30 |
class User:
|
| 31 |
-
def __init__(self, id, username, password, chat_history = None, products_bought = None)
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
self.products_bought = products_bought or []
|
| 38 |
|
| 39 |
@classmethod
|
| 40 |
def create(cls, username, password)
|
|
|
|
| 28 |
conn.close()
|
| 29 |
|
| 30 |
class User:
|
| 31 |
+
def __init__(self, id, username, password, chat_history = None, products_bought = None):
|
| 32 |
+
self.id = id
|
| 33 |
+
self.username = username
|
| 34 |
+
self.password = paswword
|
| 35 |
+
self.chat_history = chat_history or []
|
| 36 |
+
self.products_bought = products_bought or []
|
|
|
|
| 37 |
|
| 38 |
@classmethod
|
| 39 |
def create(cls, username, password)
|