mirror of https://github.com/m-labs/artiq.git
master/worker_db/get_last_rid: ignore improperly named files
This commit is contained in:
parent
a808d26fc2
commit
f9323c3286
|
@ -111,6 +111,8 @@ def get_last_rid():
|
||||||
continue
|
continue
|
||||||
for x in h5files:
|
for x in h5files:
|
||||||
m = re.fullmatch('(\d\d\d\d\d\d\d\d\d)-.*\.h5', x)
|
m = re.fullmatch('(\d\d\d\d\d\d\d\d\d)-.*\.h5', x)
|
||||||
|
if m is None:
|
||||||
|
continue
|
||||||
rid = int(m.group(1))
|
rid = int(m.group(1))
|
||||||
if rid > r:
|
if rid > r:
|
||||||
r = rid
|
r = rid
|
||||||
|
|
Loading…
Reference in New Issue