diff --git a/aiopogo/pgoapi.py b/aiopogo/pgoapi.py index 5f70ee62..f51e25ed 100755 --- a/aiopogo/pgoapi.py +++ b/aiopogo/pgoapi.py @@ -91,6 +91,10 @@ def activate_hash_server(self, hash_token): def get_hash_server_token(self): return self._hash_server_token + @property + def start_time(self): + return self._state.start_time + async def __getattr__(self, func): async def function(**kwargs): request = self.create_request() diff --git a/aiopogo/rpc_api.py b/aiopogo/rpc_api.py index 7a93b6e8..c628a1d7 100755 --- a/aiopogo/rpc_api.py +++ b/aiopogo/rpc_api.py @@ -169,7 +169,7 @@ async def _build_main_request(self, subrequests, player_position=None): request = RequestEnvelope() request.status_code = 2 - request.request_id = self.state.id_gen.request_id() + request.request_id = self.state.request_id # 5: 43%, 10: 30%, 30: 5%, 50: 4%, 65: 10%, 200: 1%, float: 7% request.accuracy = rand.choose_weighted( @@ -481,7 +481,10 @@ def __init__(self): self.mag_z_max = self.mag_y_min + 15 self._course = rand.uniform(0, 359.99) self.message8 = None - self.first_request = None + + @property + def request_id(self): + return self.id_gen.request_id() @property def magnetic_field_x(self): diff --git a/setup.py b/setup.py index 5378fb52..922144cc 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ author = 'David Christenson', author_email='mail@noctem.xyz', description = 'Asynchronous Pokemon API lib', - version = '1.3.3', + version = '1.3.4', url = 'https://github.com/Noctem/aiopogo', packages = find_packages(), install_requires = [