Skip to content

Commit

Permalink
Setting default task_id to anything less than 7 digits could result i…
Browse files Browse the repository at this point in the history
…n task documents being overwritten in the test collection
  • Loading branch information
tsmathis committed Jun 28, 2023
1 parent e982352 commit 71cc657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emmet-cli/emmet/cli/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def parse(task_ids, snl_metas, nproc, store_volumetric_data, runs): # noqa: C90
result = list(target.collection.aggregate(pipeline))

if not result:
next_tid = 1 # Only occurs when inserting into an empty task collection for testing
next_tid = 1000001 # Only occurs when inserting into an empty task collection for testing
else:
next_tid = result[0]["num_max"] + 1

Expand Down

0 comments on commit 71cc657

Please sign in to comment.