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

nba-go player stephen curry -r returns more than one table #73

Open
jstallm opened this issue Apr 25, 2018 · 4 comments
Open

nba-go player stephen curry -r returns more than one table #73

jstallm opened this issue Apr 25, 2018 · 4 comments

Comments

@jstallm
Copy link

jstallm commented Apr 25, 2018

Should return only one table. INstead shown below, it shows two, one for a player "Lance Stephenson "
PS C:\WINDOWS\system32> nba-go player stephen curry -r
╔═════════════════════════════════════════════════════════════════════════════════════════════╗
║ GSW #30 Stephen Curry │ Regular Season ║
╟─────────╤──────╤─────╤─────╤──────╤──────╤──────╤──────╤──────╤─────╤─────╤─────╤─────╤─────╢
║ SEASON │ TEAM │ AGE │ GP │ MIN │ PTS │ FG% │ 3P% │ FT% │ AST │ REB │ STL │ BLK │ TOV ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2017-18 │ GSW │ 30 │ 51 │ 32 │ 26.4 │ 49.5 │ 42.3 │ 92.1 │ 6.1 │ 5.1 │ 1.6 │ 0.2 │ 3 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2016-17 │ GSW │ 29 │ 79 │ 33.4 │ 25.3 │ 46.8 │ 41.1 │ 89.8 │ 6.6 │ 4.5 │ 1.8 │ 0.2 │ 3 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2015-16 │ GSW │ 28 │ 79 │ 34.2 │ 30.1 │ 50.4 │ 45.4 │ 90.8 │ 6.7 │ 5.4 │ 2.1 │ 0.2 │ 3.3 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2014-15 │ GSW │ 27 │ 80 │ 32.7 │ 23.8 │ 48.7 │ 44.3 │ 91.4 │ 7.7 │ 4.3 │ 2 │ 0.2 │ 3.1 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2013-14 │ GSW │ 26 │ 78 │ 36.5 │ 24 │ 47.1 │ 42.4 │ 88.5 │ 8.5 │ 4.3 │ 1.6 │ 0.2 │ 3.8 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2012-13 │ GSW │ 25 │ 78 │ 38.2 │ 22.9 │ 45.1 │ 45.3 │ 90.0 │ 6.9 │ 4 │ 1.6 │ 0.2 │ 3.1 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2011-12 │ GSW │ 24 │ 26 │ 28.2 │ 14.7 │ 49.0 │ 45.5 │ 80.9 │ 5.3 │ 3.4 │ 1.5 │ 0.3 │ 2.5 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2010-11 │ GSW │ 23 │ 74 │ 33.6 │ 18.6 │ 48.0 │ 44.2 │ 93.4 │ 5.8 │ 3.9 │ 1.5 │ 0.3 │ 3.1 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2009-10 │ GSW │ 22 │ 80 │ 36.2 │ 17.5 │ 46.2 │ 43.7 │ 88.5 │ 5.9 │ 4.5 │ 1.9 │ 0.2 │ 3 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ Overall │ │ │ 625 │ 34.4 │ 23.1 │ 47.7 │ 43.6 │ 90.3 │ 6.8 │ 4.4 │ 1.8 │ 0.2 │ 3.2 ║
╚═════════╧══════╧═════╧═════╧══════╧══════╧══════╧══════╧══════╧═════╧═════╧═════╧═════╧═════╝
╔═════════════════════════════════════════════════════════════════════════════════════════════╗
║ IND #1 Lance Stephenson │ Regular Season ║
╟─────────╤──────╤─────╤─────╤──────╤──────╤──────╤──────╤──────╤─────╤─────╤─────╤─────╤─────╢
║ SEASON │ TEAM │ AGE │ GP │ MIN │ PTS │ FG% │ 3P% │ FT% │ AST │ REB │ STL │ BLK │ TOV ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2017-18 │ IND │ 27 │ 82 │ 22.6 │ 9.2 │ 42.7 │ 28.9 │ 66.1 │ 2.9 │ 5.2 │ 0.6 │ 0.2 │ 1.6 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2016-17 │ TOT │ 26 │ 18 │ 20.1 │ 6.8 │ 45.0 │ 30.0 │ 61.5 │ 3.3 │ 2.9 │ 0.3 │ 0.2 │ 1.4 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2016-17 │ IND │ 26 │ 6 │ 22 │ 7.2 │ 40.9 │ 62.5 │ 66.7 │ 4.2 │ 4 │ 0.5 │ 0.3 │ 1.8 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2016-17 │ MIN │ 26 │ 6 │ 11.2 │ 3.5 │ 47.6 │ 0.0 │ 50.0 │ 0.8 │ 1.7 │ 0 │ 0 │ 0.7 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2016-17 │ NOP │ 26 │ 6 │ 27 │ 9.7 │ 47.3 │ 10.0 │ 62.5 │ 4.8 │ 3 │ 0.3 │ 0.2 │ 1.8 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2015-16 │ TOT │ 25 │ 69 │ 19.9 │ 8.3 │ 48.1 │ 38.5 │ 78.4 │ 1.9 │ 3.2 │ 0.6 │ 0.1 │ 1.4 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2015-16 │ MEM │ 25 │ 26 │ 26.6 │ 14.2 │ 47.4 │ 35.5 │ 81.5 │ 2.8 │ 4.4 │ 0.7 │ 0.2 │ 1.8 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2015-16 │ LAC │ 25 │ 43 │ 15.8 │ 4.7 │ 49.4 │ 40.4 │ 70.0 │ 1.4 │ 2.5 │ 0.6 │ 0.1 │ 1.1 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2014-15 │ CHA │ 24 │ 61 │ 25.8 │ 8.2 │ 37.6 │ 17.1 │ 62.7 │ 3.9 │ 4.5 │ 0.6 │ 0.1 │ 2.1 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2013-14 │ IND │ 23 │ 78 │ 35.3 │ 13.8 │ 49.1 │ 35.2 │ 71.1 │ 4.6 │ 7.2 │ 0.7 │ 0.1 │ 2.7 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2012-13 │ IND │ 22 │ 78 │ 29.2 │ 8.8 │ 46.0 │ 33.0 │ 65.2 │ 2.9 │ 3.9 │ 1 │ 0.2 │ 1.4 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2011-12 │ IND │ 21 │ 42 │ 10.5 │ 2.5 │ 37.6 │ 13.3 │ 47.1 │ 1.1 │ 1.3 │ 0.5 │ 0.1 │ 0.9 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ 2010-11 │ IND │ 20 │ 12 │ 9.6 │ 3.1 │ 33.3 │ 0.0 │ 78.6 │ 1.8 │ 1.5 │ 0.3 │ 0 │ 1.3 ║
╟─────────┼──────┼─────┼─────┼──────┼──────┼──────┼──────┼──────┼─────┼─────┼─────┼─────┼─────╢
║ Overall │ │ │ 440 │ 24.4 │ 8.8 │ 44.6 │ 30.3 │ 68.5 │ 3 │ 4.3 │ 0.7 │ 0.1 │ 1.7 ║
╚═════════╧══════╧═════╧═════╧══════╧══════╧══════╧══════╧══════╧═════╧═════╧═════╧═════╧═════╝

@jstallm
Copy link
Author

jstallm commented Apr 25, 2018

Lance Stephenson doesnt even meet the search criteria either, which is confusing

@homerchen19
Copy link
Owner

Hi @jstallm
I call searchPlayers() to search for the players by you input. I found that it use includes() to filter players list, so I guess why Lance Stephenson shows is because Stephenson includes stephen.

source code

@nick-thomas
Copy link

Hi @xxhomey19 , I'd like to fix this issue. Do you mind?

@homerchen19
Copy link
Owner

@nick-thomas
Of course not, fill free to do it.

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

No branches or pull requests

3 participants