Quote Originally Posted by zmon View Post
EDIT: trapped the response for you:

Progress Report:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/flup/server/fcgi_base.py", line 558,
in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/lib64/python2.7/site-packages/flup/server/fcgi_base.py", line 1118,
 in handler
    result = self.application(environ, start_response)
  File "/usr/lib64/python2.7/site-packages/beaker/middleware.py", line 152, in _
_call__
    return self.wrap_app(environ, session_start_response)
  File "/srv/srlstats/SRL-Stats/stats.py", line 208, in __call__
    ret = self.app(env, start_response)
  File "/srv/srlstats/SRL-Stats/stats.py", line 253, in __call__
    return self.app(env, start_response)
  File "/srv/srlstats/SRL-Stats/stats.py", line 165, in stats
    r = wt.apply_rule(env['PATH_INFO'], env)
  File "/srv/srlstats/SRL-Stats/webtool.py", line 47, in apply_rule
    return fv['func'](env=env, **dict(zip(fv['vars'], l)))
  File "/srv/srlstats/SRL-Stats/stats.py", line 737, in api_commit
    res = ct.add(user, script, time, vars)
  File "/srv/srlstats/SRL-Stats/query.py", line 305, in add
    v.amount += y
AttributeError: 'NoneType' object has no attribute 'amount'


so it actually looks like the stats are being lost because query.py blows up before it tries to save it to db, so that's why they're not showing up


if you need to debug, here is one that i tried to commit when i was trapping the response:


/srv/srlstats/SRL-Stats/query.py in add(self=<query.CommitTool object>, user=User(zdenek), script=Script(Preemptible RuneSpan : User(zdenek)), time=5, vars={Variable(Total EXP Gained): 3022, Variable(Earth Runes (Crafted)): 25, Variable(Runecrafting EXP (Gained)): 3022, Variable(Rune Essence (Mined)): 271, Variable(Cosmic Runes (Crafted)): 52, Variable(Water Runes (Crafted)): 25})

Edit #2 i missed the line where you log requests so i suppose you can pull it up and test a few more scenarios, if you are logging info level
Okay. This is a bug and I've tried to fix it. Give it a go?