Make list titles configurable

This commit is contained in:
fanyx 2023-01-13 00:20:02 +01:00
parent 5f68547a6a
commit bdd6f37118
1 changed files with 6 additions and 3 deletions

View File

@ -3,8 +3,11 @@
import yaml import yaml
from os.path import dirname from os.path import dirname
# BASE = dirname('/home/hendrik/git/list-of-game/src/build.py')
BASE = dirname(__file__) + '/src' BASE = dirname(__file__) + '/src'
TITLE_LEFT = "List of Shame"
TITLE_RIGHT = "List of Pride"
MAX_WIDTH = 64 MAX_WIDTH = 64
MAX_WIDTH_TITLE = 40 MAX_WIDTH_TITLE = 40
MAX_WIDTH_PLATFORM = 4 MAX_WIDTH_PLATFORM = 4
@ -87,7 +90,7 @@ def main():
todo_result = [] todo_result = []
todo_result += build_header(['List of Shame']) todo_result += build_header([TITLE_LEFT])
todo_result += build_index(todo_yaml, 'S') todo_result += build_index(todo_yaml, 'S')
@ -133,7 +136,7 @@ def main():
finished_result = [] finished_result = []
finished_result += build_header(['List of Pride']) finished_result += build_header([TITLE_RIGHT])
finished_result += build_index(finished_yaml, 'P') finished_result += build_index(finished_yaml, 'P')