diff options
-rwxr-xr-x | cgi-bin/monkey-index.cgi | 4 |
1 files 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("---") |