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

The battles and province list are not being synced #56

Open
enbewu opened this issue Sep 10, 2015 · 4 comments
Open

The battles and province list are not being synced #56

enbewu opened this issue Sep 10, 2015 · 4 comments

Comments

@enbewu
Copy link

enbewu commented Sep 10, 2015

WG has created CW2.0 with a completely new map, with battles on different tiers. Since then the old battles and held provinces are not working:

ERROR:whyattend.webapp:Error querying WG server for battle schedule
Traceback (most recent call last):
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 314, in cached_battle_schedule
    return wotapi.get_battle_schedule(clan_id)
  File "/home/cwtracker/cw.psqd.co/whyattend/wotapi.py", line 125, in get_battle_schedule
    for item in schedule['items']:
TypeError: 'NoneType' object has no attribute '__getitem__'
@ceari
Copy link
Owner

ceari commented Sep 14, 2015

I tried to fix it, not sure what information is useful now though. What's a "front" anyway? :-)

The API provides the following data:
https://eu.wargaming.net/developers/api_explorer/wot/globalmap/clanprovinces/?application_id=demo&clan_id=500021712&http_method=GET&run=1
and
https://eu.wargaming.net/developers/api_reference/wot/globalmap/clanbattles/

Let me know if you want to see other information from these API methods.

@enbewu
Copy link
Author

enbewu commented Sep 16, 2015

The global map has been split into regions (Fronts) which are being played at different tier tanks. I.e. Western Front is being played at 10th tier, Scandinavian Front on 8th tier, Mediterraneran at 6th.

As for the resources there is still good old gold, influence and resources. I don't remember but influence and resources are earned in battles rather than from the provinces themselves.

Provinces are now upgradeable - each has 10 levels, and with next upgrade it earns more gawld.

@enbewu
Copy link
Author

enbewu commented Sep 17, 2015

Personally I think that these are the most crucial info from the API:

"front_name": "Scandinavian Front",
"province_name": "Karlskrona"
"arena_name": "Fisherman's Bay",
"prime_time": "19:00",
"daily_revenue": 720,
"revenue_level": 5,
"turns_owned": 358,

@enbewu
Copy link
Author

enbewu commented Sep 17, 2015

But I see that you've managed already.

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