Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
double tracking #50
I've not been able to hunt down the exact reason, but it appears that I'm getting "double" entries for every web query. Even using command-line
Any ideas what might be causing this? Is the same procedure being called before and after the request?
I'm using mongoengine for storage (which I wrote for this repo, so it could easily be a bug of mine.)
I've been observing it for a while on my various docker sites. An additional observation:
When ever an URL is "corrected" internally by Flask, instead of double-counting the visit, one count is applied to the original query and one count to the internal fix. For example, if a page is at
It's almost like the wrapper is being applied prior to and after the view function.
Speaking of, I'm running with
"psTrackUsage" is a class I wrote. Removing it doesn't fix the problem.
If nothing jumps out, I'll start digging into this.
I haven't been able to reproduce the issue with other storage backends. I tried Firefox and wget, same version of Flask and Flask-Track-Usage. I also upped to the latest release of Flask and couldn't reproduce it.
Did you try dropping