1
0
mirror of synced 2024-11-27 22:40:49 +01:00

converters.py: Fix bug with #GOGOEND parsing

bool('0') = True. We need to add `int()` so that bool(0) = False.
This commit is contained in:
Viv 2023-06-25 11:26:56 -04:00
parent 3b88104578
commit c233dda574

View File

@ -85,7 +85,7 @@ def preprocessTJAMeasures(tja):
currentScroll = data['value']
measure_cur['scroll'] = currentScroll
elif data['type'] == 'gogo':
currentGogo = bool(data['value'])
currentGogo = bool(int(data['value']))
measure_cur['gogo'] = currentGogo
elif data['type'] == 'barline':
pass