Fix bug when getting number from ID having mix text and number

This commit is contained in:
David Maisonave
2025-01-10 13:00:45 -05:00
parent def6234e60
commit 2431e3dac2
2 changed files with 4 additions and 1 deletions

View File

@@ -1903,7 +1903,7 @@ def updateScenesInReport(fileName, scene):
idx = line.find(strToFind, idx) + len(strToFind)
id = line[idx:]
stash.Debug(f"id = {id}, idx = {idx}")
id = id[:id.find('"')]
id = stash.getNum(id[:id.find('"')])
stash.Debug(f"id = {id}")
if scene1 == -1:
scene1 = int(id)