youssef1214 commited on
Commit
05faae5
·
1 Parent(s): 7240c28

Update Classes.py

Browse files
Files changed (1) hide show
  1. Classes.py +2 -2
Classes.py CHANGED
@@ -123,7 +123,7 @@ class Feedback(object):
123
  if not isinstance(source, dict):
124
  raise ValueError('Source is not a dictionary')
125
  # Create a Feedback object with the source values
126
- shakwa = Feedback(
127
  source['date'],
128
  source['feedback'],
129
  source['id'],
@@ -132,7 +132,7 @@ class Feedback(object):
132
  source['label'],
133
  )
134
  # Return the User object
135
- return Feedback
136
 
137
  # Convert a Feedback object to a dictionary
138
  def to_dict(self):
 
123
  if not isinstance(source, dict):
124
  raise ValueError('Source is not a dictionary')
125
  # Create a Feedback object with the source values
126
+ feedback = Feedback(
127
  source['date'],
128
  source['feedback'],
129
  source['id'],
 
132
  source['label'],
133
  )
134
  # Return the User object
135
+ return feedback
136
 
137
  # Convert a Feedback object to a dictionary
138
  def to_dict(self):