Spaces:
Runtime error
Runtime error
youssef1214
commited on
Commit
•
1d5b006
1
Parent(s):
79bce5c
Update Classes.py
Browse files- Classes.py +1 -1
Classes.py
CHANGED
@@ -18,7 +18,7 @@ class Shakwa(object):
|
|
18 |
self.title = title
|
19 |
self.userid = userid
|
20 |
|
21 |
-
def set_data(self):
|
22 |
# Create a document reference with the user's email as the ID
|
23 |
doc_ref = db.collection('complaints').document(self.id)
|
24 |
# Set the document data with the user's attributes
|
|
|
18 |
self.title = title
|
19 |
self.userid = userid
|
20 |
|
21 |
+
def set_data(self,db):
|
22 |
# Create a document reference with the user's email as the ID
|
23 |
doc_ref = db.collection('complaints').document(self.id)
|
24 |
# Set the document data with the user's attributes
|