Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dtable_events/automations/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,12 @@ def cron_link_records(self):
else:
row_id_list.append(row_id)
other_rows_ids_map[row_id] = [other_row['_id']]
# rows without any matches in other table, update links to empty
for row_ids in table_rows_dict.values():
for row_id in row_ids:
if row_id not in other_rows_ids_map:
other_rows_ids_map[row_id] = []
row_id_list.append(row_id)
# update links
step = 1000
for i in range(0, len(row_id_list), step):
Expand Down