-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix clan member sync broken by API changes #55
Comments
Thanks for answer, i add this to config, but to make it work i must add too: Now the clan members show but i stiil dont have a payment (not the "Gold paid out so far") just standard calculator to spend gold... |
Furthermore:
|
After some more issues, local_config.py should have:
BUT. WG seems to have changed the rank for Clan Leader and now it's called Commander, not Leader which messes up the in-app access rigths. |
To have the ability to pay out you need @biurokomplex to add the new roles to the PAYOUT_ROLE. |
As listed in https://api.worldoftanks.eu/wgn/clans/glossary/?application_id=demo Addresses issue #55
Thanks for the info @enbewu I've updated the defaults in config.py according to https://api.worldoftanks.eu/wgn/clans/glossary/?application_id=demo - it seems the role names changed quite a bit. Let me know if there are roles missing. |
You missed Junior Officer, in
Sync and players list working fine with that. @enbewu - theres no longer used |
Hi, all and thanks for help, now all work fine. I have one more question about "profile" when you are login, when you click on your nick and click on "profile" that happend: Traceback (most recent call last) Do you have the same error? if yes, please give me the clue how to fix it. |
I implemented some fixes regarding handling of older replay versions that lead to this error. Please try it now. |
All work fine now. Scheduled Battles, Provinces owned and profiles too. Thanks for help and we can close this topic ;) bye |
Hello, i update this two files and sync finish without errors right now, but the clan members list on site doesn't open.
jinja2.exceptions.UndefinedError
UndefinedError: 'dict object' has no attribute u'executive_officer'
Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "C:\Python27\lib\site-packages\flask\app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 152, in decorated_function
return f(args, *kwargs)
File "C:\Users\user\Desktop\whyattend\whyattend\webapp.py", line 1187, in clan_players
last_battle_by_player=last_battle_by_player)
File "C:\Python27\lib\site-packages\flask\templating.py", line 128, in render_template
context, ctx.app)
File "C:\Python27\lib\site-packages\flask\templating.py", line 110, in _render
rv = template.render(context)
File "C:\Python27\lib\site-packages\jinja2\environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "C:\Python27\lib\site-packages\jinja2\environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\user\Desktop\whyattend\whyattend\templates\players\players.html", line 1, in top-level template code
{% extends "layout.html" %}
File "C:\Users\user\Desktop\whyattend\whyattend\templates\layout.html", line 163, in top-level template code
{% block content %}{% endblock %}
File "C:\Users\user\Desktop\whyattend\whyattend\templates\players\players.html", line 70, in block "content"
{{g.roles[player.role]}}
File "C:\Python27\lib\site-packages\markupsafe_native.py", line 22, in escape
return Markup(text_type(s)
UndefinedError: 'dict object' has no attribute u'executive_officer'
And another thing is that the "payment" doesn't show in template.
Do you have any clues?
The text was updated successfully, but these errors were encountered: