diff --git a/jass/server.py b/jass/server.py index 12473e650e94998a41555413ead91334840ce3c1..262b859c1539aeda9dc086f008203fb000096672 100644 --- a/jass/server.py +++ b/jass/server.py @@ -13,7 +13,7 @@ from tables import HDF5ExtError from jass import util from jass.config import config from jass.models.phenotype import Phenotype, get_available_phenotypes, PhenotypeIdList, InitTableNameModel -from jass.models.inittable import get_inittable_meta +from jass.models.inittable import get_inittable_meta, valideInitTableNamePattern from jass.models.project import GlobalProject, load_project as project__load_project from jass.tasks import create_project, run_project_analysis_if_needed, get_queue_status @@ -56,7 +56,11 @@ async def read_index(): def inittable_list(): """List initTables""" for filename in os.listdir(config["DATA_DIR"]): - if filename.endswith(".hdf5") and "worktable" not in filename: + if ( + filename.endswith(".hdf5") + and "worktable" not in filename + and valideInitTableNamePattern.match(filename) + ): yield filename