diff --git a/modules/foodforus.py b/modules/foodforus.py index 5a4487a..4d769b4 100644 --- a/modules/foodforus.py +++ b/modules/foodforus.py @@ -14,11 +14,12 @@ API_URL = 'http://foodfor.vtluug.org' def _sign_vote(api_key, args): - data = "ffu0" + api_key + data = "ffu1" for k, v in sorted(args.items()): if k == 'sig': continue data += '{0}{1}'.format(k, v) + data += api_key h = hashlib.sha256() h.update(data.encode('utf-8')) return h.hexdigest()