fix printer resource priority

workspace
Brendan Howell 5 years ago
parent 9fdf43f02d
commit 6773c53fba

@ -146,8 +146,10 @@ class Publications(Bureau):
if period["day"] != current:
prn.text(period["day"])
day_count += 1
self.print_small_image(period["png"])
prn.text(" - " + period["period"] + "\r\n")
prn.close()
self.print_small_image(period["png"])
prn = self._get_small_printer()
prn.text(period["mintemp"] + " - " + period["maxtemp"] + "°")
if day_count > 3:
break

Loading…
Cancel
Save