From 31367b18930eadf1e833c88069afc2276a3924b4 Mon Sep 17 00:00:00 2001 From: "DSTO\\pivatom" Date: Mon, 14 Jan 2019 08:36:38 +1030 Subject: [PATCH] Add message check for having a vote requested --- DecisionSystem/CentralisedDecision/ballotvoter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DecisionSystem/CentralisedDecision/ballotvoter.py b/DecisionSystem/CentralisedDecision/ballotvoter.py index 0394c35..5c994cf 100644 --- a/DecisionSystem/CentralisedDecision/ballotvoter.py +++ b/DecisionSystem/CentralisedDecision/ballotvoter.py @@ -27,6 +27,8 @@ class BallotVoter: messageDict = umsgpack.unpackb(message) if "type" in messageDict.keys: # Ok message. + if messageDict["type"] == "reqVote": + submit_vote() else: # Bad message.