From: Mark Tearle Date: Sun, 12 Dec 2004 06:35:26 +0000 (+0000) Subject: fixing door logic X-Git-Tag: IMPORT-FROM-UCCCVS~51 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9121df4fc1cb21d36ade2605a88d87bdeb7dd72e;p=uccvend-vendserver.git fixing door logic --- diff --git a/sql-edition/servers/VendingMachine.py b/sql-edition/servers/VendingMachine.py index d7e7a8f..709b90f 100644 --- a/sql-edition/servers/VendingMachine.py +++ b/sql-edition/servers/VendingMachine.py @@ -88,9 +88,9 @@ class VendingMachine: def handle_event(self, code, text): if code == '400': - self.events.append((DOOR, 0)) - elif code == '401': self.events.append((DOOR, 1)) + elif code == '401': + self.events.append((DOOR, 0)) elif code == '610': self.events.append((SWITCH, None)) self.interpret_switches(text)