Update eorder field
This commit is contained in:
parent
6a61baf06b
commit
fccc7526b5
|
|
@ -106,8 +106,7 @@ class HepClient:
|
|||
|
||||
def active_myskillbox_product_for_customer(self, request=None, token_dict=None):
|
||||
eorders = self.fetch_eorders(request=request, token_dict=token_dict)
|
||||
logger.info(eorders)
|
||||
|
||||
|
||||
myskillbox_products = self._extract_myskillbox_products(eorders)
|
||||
|
||||
if len(myskillbox_products) == 0:
|
||||
|
|
@ -131,12 +130,12 @@ class HepClient:
|
|||
|
||||
for eorder in eorders:
|
||||
|
||||
if 'entries' not in eorder:
|
||||
if 'items' not in eorder:
|
||||
continue
|
||||
|
||||
status = eorder.get('status', '')
|
||||
|
||||
for entry in eorder['entries']:
|
||||
for entry in eorder['items']:
|
||||
product = self.entry_to_product(entry, self._get_item_activation(eorder), status)
|
||||
|
||||
if product:
|
||||
|
|
|
|||
Loading…
Reference in New Issue