-
Notifications
You must be signed in to change notification settings - Fork 8
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
add hide grades feature with --hide_grades flag #155
base: master
Are you sure you want to change the base?
Conversation
@@ -391,6 +393,8 @@ def main(): | |||
"Enter password: ") if not args.password else args.password | |||
number = input( | |||
"Enter phone number: ") if not args.phone else args.phone | |||
school = input( | |||
"Enter college code: ").upper() if not args.school else args.school.upper() |
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.
line too long (87 > 79 characters)
src/core/grade_notifier.py
Outdated
@@ -274,7 +275,7 @@ def refresh(remaining_attempts=2): | |||
else: | |||
refresh(remaining_attempts - 1) | |||
|
|||
def start_notifier(is_welcome=False): | |||
def start_notifier(is_welcome=False, hide_grades=False): |
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.
expected 2 blank lines, found 1
src/core/grade_notifier.py
Outdated
@@ -194,10 +195,10 @@ def sign_in(remaining_attempts=5): | |||
else: | |||
return False | |||
|
|||
def create_instance(): | |||
def create_instance(hide_grades=False): |
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.
expected 2 blank lines, found 1
@@ -178,7 +178,8 @@ def welcome_message(): | |||
.newline() \ | |||
.add("Your UID is: {0}".format(custom_hash(user.get_username()))) \ | |||
.newline() \ | |||
.add("You're all set up. You should see your current grades below!") \ | |||
.add("You're all set up. You should see your current grades below!"\ | |||
if not hide_grades else "") \ |
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.
continuation line under-indented for visual indent
@@ -178,7 +178,8 @@ def welcome_message(): | |||
.newline() \ | |||
.add("Your UID is: {0}".format(custom_hash(user.get_username()))) \ | |||
.newline() \ | |||
.add("You're all set up. You should see your current grades below!") \ | |||
.add("You're all set up. You should see your current grades below!"\ |
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.
the backslash is redundant between brackets
src/core/grade_notifier.py
Outdated
@@ -169,7 +169,7 @@ def find_changes(old, new): | |||
|
|||
###********* Main Program *********### | |||
|
|||
def welcome_message(): | |||
def welcome_message(hide_grades=False): |
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.
expected 2 blank lines, found 1
src/core/grade_notifier.py
Outdated
@@ -83,18 +83,18 @@ def send_text(message, sendNumber): | |||
Converts a changelog array to a message | |||
Changelog: The list of classes which have had grade changes | |||
''' | |||
def create_text_message(change_log, is_welcome=False): | |||
def create_text_message(change_log, is_welcome=False, hide_grades=False): |
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.
expected 2 blank lines, found 0
Generated by 🚫 Danger |
Hey looks cool but a few changes
—hides_grades=“true” for example
|
@@ -275,6 +278,7 @@ def refresh(remaining_attempts=2): | |||
refresh(remaining_attempts - 1) | |||
|
|||
def start_notifier(is_welcome=False): | |||
#global hide_grades |
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.
block comment should start with '# '
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.
Looks good
what just happened. why are so may files changed all of a sudden |
No description provided.