From c4b83694b7daff7ee56ee0436c49169db0287218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20Ayd=C4=B1n?= <22278039+afk@users.noreply.github.com> Date: Fri, 15 Mar 2019 11:16:47 +0300 Subject: [PATCH] fixed an error with id set --- server_side/api/voting_system/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_side/api/voting_system/app.py b/server_side/api/voting_system/app.py index 7a07923..e2514c8 100644 --- a/server_side/api/voting_system/app.py +++ b/server_side/api/voting_system/app.py @@ -32,7 +32,7 @@ class Votings(Resource): def post(self): args = parser.parse_args() - voting_id = max(len(votings)) + 1 + voting_id = len(votings) + 1 voting = { 'id': voting_id, 'name': args['name'],