Skip to content

Commit

Permalink
handle records with no user value
Browse files Browse the repository at this point in the history
  • Loading branch information
jbukhari committed Jul 3, 2024
1 parent 2b1dd8d commit 6b100a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dlx_dl/scripts/sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def run(**kwargs):
Auth.build_cache()

for i, record in enumerate(records.records):
if record.user is None:
record.user = 'system'

if record.user[:10] == 'batch_edit':
# skip syncing batch edited records for now so as not to overwhelm DL queue
continue
Expand Down

0 comments on commit 6b100a8

Please sign in to comment.