Browse Source

Fix utf-8 parsing of json data files

next
Harald Welte 2 years ago
parent
commit
999c0b713b
  1. 4
      inema/inema.py

4
inema/inema.py

@ -16,10 +16,10 @@ __version__ = "0.7"
_logger = logging.getLogger(__name__)
products_json = resource_stream(__name__, "data/products.json").read().decode()
products_json = resource_stream(__name__, "data/products.json").read().decode("utf-8")
marke_products = json.loads(products_json)
formats_json = resource_stream(__name__, "data/formats.json").read().decode()
formats_json = resource_stream(__name__, "data/formats.json").read().decode("utf-8")
formats = json.loads(formats_json)
def get_product_price_by_id(ext_prod_id):

Loading…
Cancel
Save