From 279a79a98070dcf187dc8086c646450af006dd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20Ayd=C4=B1n?= <3feaydin@gmail.com> Date: Sat, 30 Mar 2019 23:28:01 +0300 Subject: [PATCH] fixed an error with rating --- server_side/api/modules/rating_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_side/api/modules/rating_system.py b/server_side/api/modules/rating_system.py index 08cba22..b7efc65 100644 --- a/server_side/api/modules/rating_system.py +++ b/server_side/api/modules/rating_system.py @@ -96,7 +96,7 @@ class Rate(Resource): if 0 >= score >= 10: abort(500, 'Score should be between 0 and 10') 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, 'rater': request.form['rater_id'], 'score': score,