summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-11-30 18:44:30 +0000
committerVincent Sanders <vince@kyllikki.org>2019-11-30 18:44:30 +0000
commite4c7ed6738e9621ce24cd279558e30728aba4a09 (patch)
tree74ccd680aaf983ed2972ebb395591605e687e0a2
parentfe670174a105e1a07fb38db1b2d318979b0a68e8 (diff)
downloadnetsurf-test-e4c7ed6738e9621ce24cd279558e30728aba4a09.tar.gz
netsurf-test-e4c7ed6738e9621ce24cd279558e30728aba4a09.tar.bz2
check for index yaml in the division directory
-rwxr-xr-xcgi-bin/monkey-index.cgi4
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("---")