2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

master/worker_db/get_last_rid: ignore improperly named files

This commit is contained in:
Sebastien Bourdeauducq 2016-01-16 10:56:01 -07:00
parent a808d26fc2
commit f9323c3286

View File

@ -111,6 +111,8 @@ def get_last_rid():
continue
for x in h5files:
m = re.fullmatch('(\d\d\d\d\d\d\d\d\d)-.*\.h5', x)
if m is None:
continue
rid = int(m.group(1))
if rid > r:
r = rid