diff --git a/docs/build/doctrees/environment.pickle b/docs/build/doctrees/environment.pickle
index 88392cd..6446224 100644
Binary files a/docs/build/doctrees/environment.pickle and b/docs/build/doctrees/environment.pickle differ
diff --git a/docs/build/doctrees/pyETT.doctree b/docs/build/doctrees/pyETT.doctree
index d9b6c2f..cca85da 100644
Binary files a/docs/build/doctrees/pyETT.doctree and b/docs/build/doctrees/pyETT.doctree differ
diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo
index 330ab4d..97b689d 100644
--- a/docs/build/html/.buildinfo
+++ b/docs/build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 132f96269b84295c115c2f79b9c8abea
+config: 807abf75b139d4943d6573c6932e5000
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html
index 7d16d8c..486f480 100644
--- a/docs/build/html/_modules/index.html
+++ b/docs/build/html/_modules/index.html
@@ -7,7 +7,7 @@
-
Overview: module code — pyETT 0.2.4 documentation
+ Overview: module code — pyETT 0.2.5 documentation
diff --git a/docs/build/html/_static/documentation_options.js b/docs/build/html/_static/documentation_options.js
index df15935..2216f34 100644
--- a/docs/build/html/_static/documentation_options.js
+++ b/docs/build/html/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: '0.2.4',
+ VERSION: '0.2.5',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/docs/build/html/genindex.html b/docs/build/html/genindex.html
index 269b9fe..1af8693 100644
--- a/docs/build/html/genindex.html
+++ b/docs/build/html/genindex.html
@@ -7,7 +7,7 @@
- Index — pyETT 0.2.4 documentation
+ Index — pyETT 0.2.5 documentation
diff --git a/docs/build/html/index.html b/docs/build/html/index.html
index 67f2d55..688a1a4 100644
--- a/docs/build/html/index.html
+++ b/docs/build/html/index.html
@@ -7,7 +7,7 @@
- Welcome to pyETT’s documentation! — pyETT 0.2.4 documentation
+ Welcome to pyETT’s documentation! — pyETT 0.2.5 documentation
diff --git a/docs/build/html/modules.html b/docs/build/html/modules.html
index 5099b17..7ee552a 100644
--- a/docs/build/html/modules.html
+++ b/docs/build/html/modules.html
@@ -7,7 +7,7 @@
- pyETT — pyETT 0.2.4 documentation
+ pyETT — pyETT 0.2.5 documentation
diff --git a/docs/build/html/py-modindex.html b/docs/build/html/py-modindex.html
index 4cb877d..c3a0474 100644
--- a/docs/build/html/py-modindex.html
+++ b/docs/build/html/py-modindex.html
@@ -7,7 +7,7 @@
- Python Module Index — pyETT 0.2.4 documentation
+ Python Module Index — pyETT 0.2.5 documentation
diff --git a/docs/build/html/pyETT.html b/docs/build/html/pyETT.html
index 6e2a466..d66847f 100644
--- a/docs/build/html/pyETT.html
+++ b/docs/build/html/pyETT.html
@@ -7,7 +7,7 @@
- pyETT package — pyETT 0.2.4 documentation
+ pyETT package — pyETT 0.2.5 documentation
@@ -258,7 +258,7 @@ SubmodulespyETT.ett.Player][source]
Returns a list of players from the leaderboard.
- Parameters
diff --git a/docs/build/html/pyETT_demo.html b/docs/build/html/pyETT_demo.html
index 46978f9..b12fa73 100644
--- a/docs/build/html/pyETT_demo.html
+++ b/docs/build/html/pyETT_demo.html
@@ -7,7 +7,7 @@
- Getting Started — pyETT 0.2.4 documentation
+ Getting Started — pyETT 0.2.5 documentation
diff --git a/docs/build/html/search.html b/docs/build/html/search.html
index 56b6c8e..41129b4 100644
--- a/docs/build/html/search.html
+++ b/docs/build/html/search.html
@@ -7,7 +7,7 @@
- Search — pyETT 0.2.4 documentation
+ Search — pyETT 0.2.5 documentation
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 194b2a2..ad8b230 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -23,7 +23,7 @@
author = "Tharsis T. P. Souza"
# The full version, including alpha/beta/rc tags
-release = "0.2.4"
+release = "0.2.5"
# -- General configuration ---------------------------------------------------
diff --git a/pyETT/ett.py b/pyETT/ett.py
index 7bb6c3c..d46c479 100644
--- a/pyETT/ett.py
+++ b/pyETT/ett.py
@@ -187,6 +187,9 @@ def __init__(self, match_id, match):
self.home_score = match["home-score"]
self.away_score = match["away-score"]
self.elo_change = match["elo-change"]
+ self.home_elo_avg = match["home-elo-avg"]
+ self.away_elo_avg = match["away-elo-avg"]
+
home_player_index = 0 if match["players"][0]["team"] == Player.HOME else 1
self.home_player = Player(
@@ -275,7 +278,7 @@ def user_search_dataframe(
]
).dropna(how="all", axis="columns")
- def get_leaderboard(self, num_players=10) -> List[Player]:
+ def get_leaderboard(self, num_players: int = 10) -> List[Player]:
"""Returns a list of players from the leaderboard.
Args:
diff --git a/pyETT/ett_parser.py b/pyETT/ett_parser.py
index 114c62c..762a79d 100644
--- a/pyETT/ett_parser.py
+++ b/pyETT/ett_parser.py
@@ -6,6 +6,7 @@
import sys
import aiohttp
import asyncio
+import urllib.parse
import pandas as pd
import nest_asyncio # type: ignore
@@ -137,6 +138,8 @@ def request_matchup(user_id1, user_id2):
for match_data in res:
match = match_data["attributes"]
+ match["home-elo-avg"] = match.pop("home-elo")
+ match["away-elo-avg"] = match.pop("away-elo")
match["winning-team"] = match.pop("winner")
match["losing-team"] = 1 - match["winning-team"]
@@ -213,6 +216,7 @@ def request_leaderboard_official_tournament():
def user_search(username) -> List:
+ username = urllib.parse.quote(username)
async def request_user(session, url):
async with session.get(url) as resp:
user_page = await resp.json()
diff --git a/setup.py b/setup.py
index cccc606..294a765 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
setup(
name="pyETT",
- version="0.2.4",
+ version="0.2.5",
description="Python library for Eleven VR Table Tennis data",
long_description=readme,
long_description_content_type="text/markdown",