Skip to content

Commit

Permalink
Merge pull request #846 from a-luna/patch-release/v0.6.3
Browse files Browse the repository at this point in the history
v0.6.3
  • Loading branch information
a-luna authored Sep 30, 2021
2 parents 96c7c91 + 74890fe commit 6db5dc7
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 119 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vig-node-deps",
"version": "0.6.2",
"version": "0.6.3",
"description": "This file is used for heroku deployment, the postbuild script below is called after each push to install the dependencies listed in the REAL package.json in the nightmarejs folder. Yes, I know that it is lame and hacky to have this root package.json file that exists solely to tap on the shoulder of another package.json and ask sheepishly to run freaking 'npm install' simply because heroku couldn't possibly manage the herculean feat of locating a package.json file anywhere but the root folder, but that's where we are and that's why this file exists.",
"scripts": {
"heroku-postbuild": "cd src/vigorish/nightmarejs && npm install"
Expand Down
20 changes: 10 additions & 10 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ backports.entry-points-selectable==1.1.0
black==21.5b1
bleach==3.3.1
blessed==1.19.0
boto3==1.18.45
botocore==1.21.45
boto3==1.18.51
botocore==1.21.51
bullet==2.2.0
certifi==2021.5.30
cffi==1.14.6
Expand All @@ -36,9 +36,9 @@ docutils==0.17.1
enlighten==1.10.1
Events==0.4
executing==0.8.1
filelock==3.0.12
filelock==3.2.0
flake8==3.9.2
flake8-bugbear==21.9.1
flake8-bugbear==21.9.2
flake8-comprehensions==3.6.1
flake8-plugin-utils==1.3.2
flake8-pytest-style==1.5.0
Expand Down Expand Up @@ -82,7 +82,7 @@ pickleshare==0.7.5
pip-upgrader==1.4.15
pipdeptree==2.1.0
pkginfo==1.7.1
platformdirs==2.2.0
platformdirs==2.4.0
pluggy==0.13.1
prefixed==0.3.2
prompt-toolkit==3.0.20
Expand Down Expand Up @@ -111,9 +111,9 @@ python-dotenv==0.19.0
pytz==2021.1
PyYAML==5.4.1
pyzmq==22.3.0
rapidfuzz==1.6.2
rapidfuzz==1.7.0
readme-renderer==29.0
regex==2021.8.28
regex==2021.9.24
requests==2.26.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
Expand Down Expand Up @@ -141,9 +141,9 @@ twine==3.4.2
typed-ast==1.4.3
typepy==1.3.0
typing-extensions==3.10.0.2
urllib3==1.26.6
virtualenv==20.8.0
urllib3==1.26.7
virtualenv==20.8.1
w3lib==1.22.0
wcwidth==0.2.5
webencodings==0.5.1
zipp==3.5.0
zipp==3.6.0
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aenum==3.1.0
blessed==1.19.0
boto3==1.18.45
botocore==1.21.45
boto3==1.18.51
botocore==1.21.51
bullet==2.2.0
certifi==2021.5.30
chardet==4.0.0
Expand All @@ -22,7 +22,7 @@ pyfiglet==0.8.post1
python-dateutil==2.8.2
python-dotenv==0.19.0
PyYAML==5.4.1
rapidfuzz==1.6.2
rapidfuzz==1.7.0
requests==2.26.0
s3transfer==0.5.0
scipy==1.7.1
Expand All @@ -33,6 +33,6 @@ SQLAlchemy-Utils==0.37.8
tabulate==0.8.9
termcolor==1.1.0
tqdm==4.62.3
urllib3==1.26.6
urllib3==1.26.7
w3lib==1.22.0
wcwidth==0.2.5
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"rapidfuzz",
"requests",
"scipy",
"sqlalchemy==1.3.23",
"sqlalchemy",
"sqlalchemy-utils",
"tabulate",
"tqdm",
Expand Down
4 changes: 2 additions & 2 deletions src/vigorish/data/metrics/bat_stats/bat_stats_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def total_games_subbed(self) -> int:

@property
def percent_started(self) -> float:
percent_started = self.total_games_started / float(self.total_games)
percent_started = self.total_games_started / float(self.total_games) if self.total_games else 0.0
return round(percent_started, ndigits=3)

@property
def percent_subbed(self) -> float:
percent_subbed = self.total_games_subbed / float(self.total_games)
percent_subbed = self.total_games_subbed / float(self.total_games) if self.total_games else 0.0
return round(percent_subbed, ndigits=3)

@cached_property
Expand Down
2 changes: 1 addition & 1 deletion src/vigorish/nightmarejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vigorish/nightmarejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vig-nodejs",
"version": "0.6.2",
"version": "0.6.3",
"description": "NightmareJS and other node modules used to scrape html from websites",
"author": "Aaron Luna <[email protected]> (https://aaronluna.dev)",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions src/vigorish/setup/csv/bbref_player_id_map.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3577,6 +3577,7 @@ Jason Conti,150152,contija01
Carlos Contreras,542266,contrca01
José Contreras,425747,contrjo01
Nardi Contreras,112604,contrna01
Roansy Contreras,672710,contrro01
Willson Contreras,575929,contrwi01
William Contreras,661388,contrwi02
Jim Converse,112605,conveji01
Expand Down Expand Up @@ -6483,6 +6484,7 @@ Tony Ghelfi,114737,ghelfto01
Bob Giallombardo,114738,giallbo01
Jason Giambi,114739,giambja01
Jeremy Giambi,136605,giambje01
Trent Giambrone,623508,giambtr01
Joe Giannini,114741,giannjo01
Ray Giannelli,114740,giannra01
Joe Giard,114742,giardjo01
Expand Down Expand Up @@ -13459,6 +13461,7 @@ Frank Oberlin,119886,oberlfr01
Wes Obermueller,425286,obermwe01
Jim Obradovich,119888,obradji01
Peter O'Brien,598284,obriepe01
Riley O'Brien,676617,obrieri01
Alex Ochoa,119913,ochoaal01
Ivan Ochoa,430649,ochoaiv01
Walter Ockey,119915,ockeywa01
Expand Down Expand Up @@ -15993,6 +15996,7 @@ Manny Sanguillen,121686,sanguma01
Ed Sanicki,121687,saniced01
Amauri Sanit,490313,sanitam01
Ben Sankey,121688,sankebe01
Reiver Sanmartin,665665,sanmare01
Miguel Sano,593934,sanomi01
Andres Santana,121689,santaan01
Anthony Santander,623993,santaan02
Expand Down
Loading

0 comments on commit 6db5dc7

Please sign in to comment.