Browse Source

fixed an error with rating

old
Efe Aydın 6 years ago
parent
commit
279a79a980
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      server_side/api/modules/rating_system.py

+ 1
- 1
server_side/api/modules/rating_system.py View File

@ -96,7 +96,7 @@ class Rate(Resource):
if 0 >= score >= 10: if 0 >= score >= 10:
abort(500, 'Score should be between 0 and 10') abort(500, 'Score should be between 0 and 10')
note = request.form.get('note') note = request.form.get('note')
ratings[rating_id - 1]['rates']['9vard12ty0ad2yvwp3q53rsf3h43r2vq'] = {
ratings[rating_id - 1]['rates'][rater_id] = {
'id': len(ratings[rating_id - 1]['rates']) + 1, 'id': len(ratings[rating_id - 1]['rates']) + 1,
'rater': request.form['rater_id'], 'rater': request.form['rater_id'],
'score': score, 'score': score,


Loading…
Cancel
Save