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

Average Stats always empty #16

Open
benschlegel opened this issue Feb 24, 2018 · 7 comments
Open

Average Stats always empty #16

benschlegel opened this issue Feb 24, 2018 · 7 comments

Comments

@benschlegel
Copy link

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
Copy link
Contributor

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
Copy link
Author

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

@Drummersbrother
Copy link
Contributor

Drummersbrother commented Feb 26, 2018 via email

@benschlegel
Copy link
Author

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

@Drummersbrother
Copy link
Contributor

Drummersbrother commented Feb 26, 2018 via email

@benschlegel
Copy link
Author

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

@Drummersbrother
Copy link
Contributor

Drummersbrother commented Feb 26, 2018 via email

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

2 participants