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

Convert raw sql to sqlalchemy for standings #8

Merged

Conversation

smfarrelly
Copy link
Contributor

@smfarrelly smfarrelly commented Sep 16, 2020

Related issue: #1 Follow on from #6

TODOs:

Also:

  • Include ties in denominator when calculating win percentage, average points for, and average points against
  • Removes get_standings_overall in favor of get_standings now accepting an optional year kwarg that defaults to None. When no year/ None is provided all years are included.
  • Clean up type annotations for query.py. Mostly via typings NamedTuple inheritance.
  • Adds Ties column to standings table

in order to support more database options.

Related issue: raphattack#1

Also:
- Include ties in denominator when calculating
win percentage, average points for, and average points against
- Removes get_standings_overall in favor of get_standings
now accepting an optional year kwarg that defaults to None.
When no year/ None is provided all years are included.
@raphattack raphattack merged commit 4a64ea4 into raphattack:master Sep 17, 2020
@raphattack raphattack mentioned this pull request Sep 17, 2020
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.

2 participants