anthok / overwatch-api

Python Overwatch API Wrapper
MIT License
35 stars 11 forks source link

Average Stats always empty #16

Open benschlegel opened 6 years ago

benschlegel commented 6 years ago

Im trying to get the average stats per 10 minutes, aka the average_stats field in the output, but whatever battletag im using, this is the only field thats always empty (its empty in every region too, not only the one that the player plays in)

Drummersbrother commented 6 years ago

I have been able to get non-empty average_stats fields. See the following:

import asyncio

from overwatch_api.core import AsyncOWAPI
from overwatch_api.constants import *

async def testing(loop):
    # Instantiating the api
    client = AsyncOWAPI()

    data = {}

    print('Testing......[get_hero_stats]')
    print((await client.get_hero_stats("Danielfrogs#2552", platform=PC))
          ['eu']['stats']['quickplay']['symmetra']['average_stats'])

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(testing(loop))

When I run it, I get

Testing......[get_hero_stats]
{'teleporter_uptime_average': 0.16}

I don't know why almost all heroes have empty average_stats fields (Only Zarya and Symmetra have any data for Danielfrogs#2552), but that field is at least not always empty.

benschlegel commented 6 years ago

this still isnt really getting the per 10 minutes stat, just some generals and that only for 2 heros

Drummersbrother commented 6 years ago

Hmm πŸ€”, maybe OWAPI isn't responding with updated data.

25 feb. 2018 kl. 23:39 skrev bschlegel-tgm notifications@github.com:

this still isnt really getting the per 10 minutes stat, just some generals and that only for 2 heros

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

benschlegel commented 6 years ago

Any idea what i could do to get those stats tho?

Drummersbrother commented 6 years ago

No, I unfortunately don't know how or where to get those stats πŸ˜•.

26 feb. 2018 kl. 10:45 skrev bschlegel-tgm notifications@github.com:

Any idea what i could do to get those stats tho?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

benschlegel commented 6 years ago

Any way i could reach out to the developer so he could fix it?

Drummersbrother commented 6 years ago

Once you find even more examples of battletags lacking average stats, you could just shoot the developer(s?) of OWAPI an email about it. But make sure to really confirm this problem, I don’t want to bother the dev(s) without a reason to πŸ‘.

26 feb. 2018 kl. 21:19 skrev bschlegel-tgm notifications@github.com:

Any way i could reach out to the developer so he could fix it?

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.