aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uploader/datautils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/datautils.py b/uploader/datautils.py
index 2c2a3dc..e593937 100644
--- a/uploader/datautils.py
+++ b/uploader/datautils.py
@@ -3,10 +3,10 @@ import math
from typing import Sequence
from functools import reduce
-def enumerate_sequence(seq: Sequence[dict]) -> Sequence[dict]:
+def enumerate_sequence(seq: Sequence[dict], start:int = 1) -> Sequence[dict]:
"""Enumerate sequence beginning at 1"""
return tuple({**item, "sequence_number": seqno}
- for seqno, item in enumerate(seq, start=1))
+ for seqno, item in enumerate(seq, start=start))
def order_by_family(items: tuple[dict, ...],