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

Problem with stronghold results while trying to use the payout option #51

Open
enbewu opened this issue May 9, 2015 · 2 comments
Open

Comments

@enbewu
Copy link

enbewu commented May 9, 2015

WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 5.09ms
ERROR:whyattend.webapp:Exception on /payout/PSQD/battles [GET]
Traceback (most recent call last):
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/cwtracker/cw.psqd.co/cw.psycho/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 152, in decorated_function
    return f(*args, **kwargs)
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 198, in decorated_f
    return f(*args, **kwargs)
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 176, in decorated_f
    return f(*args, **kwargs)
  File "/home/cwtracker/cw.psqd.co/whyattend/webapp.py", line 1493, in payout_battles
    player_resources[ba.player] += ba.resources_earned
TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
ERROR:tornado.access:500 GET /payout/PSQD/battles?fromDate=01.04.2015&toDate=30.04.2015&victories_only=on&gold=16000&recruit_factor=0.6&points_per_resource=1 (127.0.0.1) 50.82ms
@ceari
Copy link
Owner

ceari commented May 10, 2015

I've added a quick fix for the problem but I suspect the stronghold resources earned couldn't be determined from a replay file. Maybe the replay format changed again with a recent patch. I'll have to look into that.

@enbewu
Copy link
Author

enbewu commented Jun 2, 2015

It worked for now

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