From bdd6f3711818c9471335d5220fa143cd86d45823 Mon Sep 17 00:00:00 2001 From: fanyx Date: Fri, 13 Jan 2023 00:20:02 +0100 Subject: [PATCH] Make list titles configurable --- build.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 82d207a..29ecee9 100755 --- a/build.py +++ b/build.py @@ -3,8 +3,11 @@ import yaml from os.path import dirname -# BASE = dirname('/home/hendrik/git/list-of-game/src/build.py') BASE = dirname(__file__) + '/src' + +TITLE_LEFT = "List of Shame" +TITLE_RIGHT = "List of Pride" + MAX_WIDTH = 64 MAX_WIDTH_TITLE = 40 MAX_WIDTH_PLATFORM = 4 @@ -87,7 +90,7 @@ def main(): todo_result = [] - todo_result += build_header(['List of Shame']) + todo_result += build_header([TITLE_LEFT]) todo_result += build_index(todo_yaml, 'S') @@ -133,7 +136,7 @@ def main(): finished_result = [] - finished_result += build_header(['List of Pride']) + finished_result += build_header([TITLE_RIGHT]) finished_result += build_index(finished_yaml, 'P')