-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove xLinkingBookDefs import from psnlYeeshaPageChanges.py #1664
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure why we want to remove the xLinkingBookDefs
import. But, we could probably salvage the log message with something like this:
# Top of file
import itertools
# Here:
PtDebugPrint("psnlYeeshaPageChanges: You've found the following Yeesha Pages:")
for thispage in itertools.count(1):
varName = f"YeeshaPage{thispage}"
if FoundValue := ageSDL.findVar(varName):
PtDebugPrint(f"\t The previous value of the SDL variable '{varName}' is {FoundValue.getInt()}")
if FoundValue.getInt() != 0:
PtDebugPrint(f"psnlYeeshaPageChanges: You have found Yeesha Page #{thispage}')
else:
# The first not found page variable is the end of the list of Yeesha Pages.
break
Although, tbh, this should probably be in somewhere like Personal.py so we don't have to have the obnoxious guard hack.
Moved it to Personal.py instead
|
Did the snippet I post not work? What you've submitted still imports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor nitpick
e6e2f60
to
898bad3
Compare
Co-authored-by: Adam Johnson <[email protected]>
All the comments was doing here was list all the Relto pages you had if you had not gotten the 5th page
Removing that section allows removing the xLinkingBookDefs import