overwatch-api icon indicating copy to clipboard operation
overwatch-api copied to clipboard

Average Stats always empty

Open benschlegel opened this issue 7 years ago β€’ 7 comments

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)

benschlegel avatar Feb 24 '18 21:02 benschlegel

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.

Drummersbrother avatar Feb 25 '18 11:02 Drummersbrother

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

benschlegel avatar Feb 25 '18 22:02 benschlegel

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

25 feb. 2018 kl. 23:39 skrev bschlegel-tgm [email protected]:

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.

Drummersbrother avatar Feb 26 '18 05:02 Drummersbrother

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

benschlegel avatar Feb 26 '18 09:02 benschlegel

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

26 feb. 2018 kl. 10:45 skrev bschlegel-tgm [email protected]:

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.

Drummersbrother avatar Feb 26 '18 15:02 Drummersbrother

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

benschlegel avatar Feb 26 '18 20:02 benschlegel

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 [email protected]:

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.

Drummersbrother avatar Feb 26 '18 20:02 Drummersbrother