feat: support COPY of a single entry

This commit is contained in:
Emmanuel BENOîT 2025-04-08 10:51:35 +02:00
parent 32fa6353f3
commit c1e72da7fc
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -87,7 +87,10 @@ class SRTMerger:
source = int(parts[1])
if source not in (1, 2):
return None
start, end = map(int, parts[2].split('-'))
if '-' in parts[2]:
start, end = map(int, parts[2].split('-'))
else:
start = end = int(parts[2])
if start > end:
return None
except (ValueError, AttributeError, TypeError):