Skip to content

Commit

Permalink
filter run files better
Browse files Browse the repository at this point in the history
  • Loading branch information
tcosmo committed Jun 11, 2022
1 parent 4865116 commit fa45d51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bbchallenge_backend/machines.py
Expand Up @@ -22,6 +22,8 @@ def machine_decider(machine_id):
to_ret = {"decider_file": None}
indexes_base_path = "indexes/bb5_decided_indexes"
for elem in os.listdir(indexes_base_path):
if not "run" in elem:
continue
elem_path = os.path.join(indexes_base_path, elem)
if os.path.isfile(elem_path):
if dichoseek(elem_path, machine_id):
Expand Down

0 comments on commit fa45d51

Please sign in to comment.