Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Fix silly main() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kamens committed Jun 26, 2011
1 parent 0195724 commit df6614e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 3 additions & 0 deletions main.py
Expand Up @@ -13,3 +13,6 @@

def main():
run_wsgi_app(application)

if __name__ == "__main__":
main()
3 changes: 2 additions & 1 deletion profiler.py
Expand Up @@ -72,6 +72,7 @@ def store(self):
@staticmethod
def get(request_id):
if request_id:

compressed_pickled = memcache.get(RequestStats.memcache_key(request_id))

if compressed_pickled:
Expand Down Expand Up @@ -246,7 +247,7 @@ def __call__(self, environ, start_response):
# Set a random ID for this request so we can look up stats later
import base64
import os
request_id = base64.b64encode(os.urandom(30))
request_id = base64.urlsafe_b64encode(os.urandom(15))

# Send request id in headers so jQuery ajax calls can pick
# up profiles.
Expand Down
12 changes: 1 addition & 11 deletions static/js/profiler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df6614e

Please sign in to comment.