Skip to content
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

Merged
merged 2 commits into from
Dec 31, 2017

Conversation

mparadinha
Copy link
Contributor

Regarding #75. Pinging @ryukinix and @evanjs to see if you guys agree.

@ryukinix ryukinix self-requested a review December 31, 2017 00:29
Copy link
Owner

@ryukinix ryukinix left a 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)
Copy link
Owner

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.

Copy link
Contributor Author

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'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and done

@mparadinha
Copy link
Contributor Author

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.

Copy link
Owner

@ryukinix ryukinix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@codecov-io
Copy link

codecov-io commented Dec 31, 2017

Codecov Report

Merging #76 into master will increase coverage by 0.35%.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99b7289...2d4381f. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants