From e4c7ed6738e9621ce24cd279558e30728aba4a09 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 30 Nov 2019 18:44:30 +0000 Subject: check for index yaml in the division directory --- cgi-bin/monkey-index.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi-bin/monkey-index.cgi b/cgi-bin/monkey-index.cgi index 7154dc2..3d3b380 100755 --- a/cgi-bin/monkey-index.cgi +++ b/cgi-bin/monkey-index.cgi @@ -51,11 +51,11 @@ def main(): with open(os.path.join(testroot, fname), "r") as file_handle: files[fname] = yaml.load(file_handle, Loader=yaml.CSafeLoader) - if 'index.yaml' not in files: + if division + '/index.yaml' not in files: print('# Division has no index') return - for group in files['index.yaml']: + for group in files[division + '/index.yaml']: if group_filter is not None and group_filter != group['group']: continue print("---") -- cgit v1.2.3