From 24386d4d4274fd3742d30a81be7e672233c8fa39 Mon Sep 17 00:00:00 2001 From: Tobias E Date: Fri, 17 Jan 2025 19:23:26 +0000 Subject: [PATCH] add explanation to gen_set.py --- lib/obp60task/gen_set.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/obp60task/gen_set.py b/lib/obp60task/gen_set.py index a0f7b6d..c848a91 100755 --- a/lib/obp60task/gen_set.py +++ b/lib/obp60task/gen_set.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 # A tool to generate that part of config.json that deals with pages and fields. +# +#Usage: 1. modify this script (e.g.add a page, change number of fields, etc.) +# 2. Delete all lines from config.json from the curly backet before "name": "page1type" to o the end of the file (as of today, delete from line 917 to the end of the File) +# 3. run ./gen_set.py >> config.json import json @@ -120,5 +124,5 @@ for page_no in range(1, no_of_pages + 1): json_output = json.dumps(output, indent=4) # print omitting first and last line containing [ ] of JSON array -print(json_output[1:-1]) +print(json_output[1:]) # print(",") \ No newline at end of file