Skip to content

Commit

Permalink
add logging to _group_oaps_together()
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Jul 18, 2024
1 parent 6d6cf93 commit 6acfcd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dsp_permissions_scripts/oap/oap_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ def _group_oaps_together(res_oaps: list[ResourceOap], val_oaps: list[ValueOap])
oaps.append(Oap(resource_oap=res_oap, value_oaps=[]))

oaps.sort(key=lambda oap: oap.resource_oap.resource_iri if oap.resource_oap else "")
logger.info(f"Grouped {len(res_oaps)} resource OAPs and {len(val_oaps)} value OAPs into {len(oaps)} OAPs")
return oaps

0 comments on commit 6acfcd1

Please sign in to comment.