-
Notifications
You must be signed in to change notification settings - Fork 9
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
user can leave anime score as is when prompted #76
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.
This seems ok, are you tested this? We need improve a little the linting issues.
mal/core.py
Outdated
entry.get('score', 0)) | ||
).strip() | ||
if user_score: # do nothing if blank answer | ||
try: entry['score'] = int(user_score) |
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.
Please, keep the PEP8 format, break the lines.
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.
done
mal/core.py
Outdated
).strip() | ||
if user_score: # do nothing if blank answer | ||
try: entry['score'] = int(user_score) | ||
except ValueError: print(color.colorize('Invalid score.', 'red')) |
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.
here too
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.
and done
Yes I tested finishing up a show and keeping it without a score, keeping it with the current (non empty) score and changing the current score. Also tested the check for giving non numeric input. Regarding linting I'm not sure how to break up the input line. |
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.
Nice!
Codecov Report
@@ Coverage Diff @@
## master #76 +/- ##
==========================================
+ Coverage 84.23% 84.59% +0.35%
==========================================
Files 9 8 -1
Lines 368 357 -11
==========================================
- Hits 310 302 -8
+ Misses 58 55 -3 Continue to review full report at Codecov.
|
Regarding #75. Pinging @ryukinix and @evanjs to see if you guys agree.