minor fix
This commit is contained in:
parent
8596d3364c
commit
e3c355bba8
|
@ -202,8 +202,6 @@ class AppWindow(FrontWindow):
|
|||
|
||||
ctx_printing = self.Sale.get_printing_context(
|
||||
{'device_id': self.device['id']})
|
||||
# 'user': self.user,
|
||||
# 'user_id': self._user['id'],
|
||||
ctx_printing['row_characters'] = self.row_characters
|
||||
ctx_printing['delta_locale'] = DELTA_LOCALE
|
||||
locale_logo = ''
|
||||
|
@ -213,11 +211,6 @@ class AppWindow(FrontWindow):
|
|||
f = open(locale_logo, "wb")
|
||||
f.write(base64.decodebytes(self.logo.encode()))
|
||||
f.close()
|
||||
# platform_py = platform.python_version()
|
||||
# if float(platform_py[:4]) >= 3.9:
|
||||
# if parse_version(platform_py) >= parse_version('3.9'):
|
||||
# else:
|
||||
# f.write(base64.decodestring(self.logo.encode()))
|
||||
|
||||
self.receipt_sale = Receipt(
|
||||
ctx_printing,
|
||||
|
|
Loading…
Reference in New Issue