Fix last_printout

This commit is contained in:
Kai Röschinger 2020-04-18 05:56:31 +02:00
parent 9de408f7a0
commit 4a96ed111c

View file

@ -229,7 +229,10 @@ class ECR(object):
for entry in self.transmitter.last_history:
inc, packet = entry
if inc and isinstance(packet, PrintLine):
printout += [packet.fixed_values['text']]
if packet.text is not None:
printout += [packet.text]
else:
printout += [""]
return printout
def payment(self, amount_cent=50, listener=None):