youssef1214 commited on
Commit
5aeccd7
1 Parent(s): 950c73d

Update Classes.py

Browse files
Files changed (1) hide show
  1. Classes.py +4 -2
Classes.py CHANGED
@@ -18,7 +18,8 @@ class Shakwa(object):
18
  self.title = title
19
  self.userid = userid
20
 
21
-
 
22
  # Get the user data from Firestore
23
  def get_data(self):
24
  # Get a document reference with the user's email as the ID
@@ -100,7 +101,8 @@ class Feedback(object):
100
  self.label=label
101
 
102
 
103
-
 
104
 
105
  # Get the Feedback data from Firestore
106
  def get_data(self):
 
18
  self.title = title
19
  self.userid = userid
20
 
21
+ def __eq__(self, other):
22
+ return self.id == other.id
23
  # Get the user data from Firestore
24
  def get_data(self):
25
  # Get a document reference with the user's email as the ID
 
101
  self.label=label
102
 
103
 
104
+ def __eq__(self, other):
105
+ return self.id == other.id
106
 
107
  # Get the Feedback data from Firestore
108
  def get_data(self):