Skip to content

Commit

Permalink
sf_shopinvader_base: use get_shop_data instead
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Apr 7, 2022
1 parent 4227635 commit 2396a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shopfloor_shopinvader_base/services/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def _get(self, _id):

def _to_json(self, records):
# TODO: not super-efficient w/ many records
return [rec._get_shop_data() for rec in records]
# only if used w/ `shopinvader_data_stored`
return [rec.get_shop_data() for rec in records]

# Validator
def _validator_get(self):
Expand Down

0 comments on commit 2396a49

Please sign in to comment.