Fixing main.py

This commit is contained in:
The Gears of Progress 2026-01-15 13:55:07 -05:00
parent b50b3e8cd6
commit a56596afcd
2 changed files with 4 additions and 3 deletions

2
PCCS

@ -1 +1 @@
Subproject commit db430d84c27bf196ab61e07d4b4588ddc093da08
Subproject commit 1c98a391c2261c8141c8917160b2040514a0c2ee

View File

@ -15,6 +15,7 @@ update = True
print ("Running text_helper:")
BASE_DIR = Path(__file__).resolve().parent
FIRST_TRANSLATION_COL_INDEX = 8
if update:
@ -467,9 +468,9 @@ for row in currSheet.iterrows():
currRow = row[1]
#print(currRow)
offset = lang.value
if (pd.isna(currRow.iloc[8 + lang.value])):
if (pd.isna(currRow.iloc[FIRST_TRANSLATION_COL_INDEX + lang.value])):
offset = Languages.English.value
mainDict[lang.name][currRow.iloc[0]][currRow.iloc[1]] = {"bytes": currRow.iloc[7 + offset],
mainDict[lang.name][currRow.iloc[0]][currRow.iloc[1]] = {"bytes": currRow.iloc[FIRST_TRANSLATION_COL_INDEX + offset],
"numLines": currRow.iloc[2],
"pixelsPerChar": currRow.iloc[3],
"pixelsInLine" : currRow.iloc[4],