Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Oct 20, 2024
1 parent c4621e5 commit 881dcd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operators/manual_data_entry/mde_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def update_branch_ids(row):
DF.add_field('operating_unit', 'string', lambda r: r.get('Org Short Name') or r.get('Org Name')),
DF.delete_fields(['Org Name', 'Org Short Name']),
DF.add_field('_id', 'string', lambda r: mde_branch_id(r)),
DF.set_type('_row_id', type='string', transform=lambda v: mde_id(v)),
DF.join_with_self('branches', ['_id'], dict(
_id=None,
id=dict(name='_row_id', aggregate='min'),
Expand Down

0 comments on commit 881dcd4

Please sign in to comment.