diff options
author | 2011-05-12 16:17:56 +0530 | |
---|---|---|
committer | 2011-05-12 16:17:56 +0530 | |
commit | 144bfa8b04c4fc750fac206357d88c722a63653d (patch) | |
tree | d881ee7bbf361d15ede5e7aca31a11a26f4ff010 /server | |
parent | handle favicon with a 404 error (diff) | |
download | gentoostats-144bfa8b04c4fc750fac206357d88c722a63653d.tar.gz gentoostats-144bfa8b04c4fc750fac206357d88c722a63653d.tar.bz2 gentoostats-144bfa8b04c4fc750fac206357d88c722a63653d.zip |
fixes after code review
Diffstat (limited to 'server')
-rwxr-xr-x | server/main.py | 4 | ||||
-rw-r--r-- | server/post.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/server/main.py b/server/main.py index dbfd3ad..7796aba 100755 --- a/server/main.py +++ b/server/main.py @@ -27,8 +27,8 @@ class stats: def GET(self, uuid): if uuid == 'favicon.ico': return notfound() - hosts = db.select('hosts', vars=locals(), where="uuid=$uuid") - env = db.select('env', vars=locals(), where="uuid=$uuid") + hosts = db.select('hosts', vars={'uuid':uuid}, where="uuid=$uuid") + env = db.select('env', vars={'uuid':uuid}, where="uuid=$uuid") return render.stats(uuid, hosts, env) def POST(self, uuid): diff --git a/server/post.py b/server/post.py index b9eb46c..0aa1d98 100644 --- a/server/post.py +++ b/server/post.py @@ -20,6 +20,7 @@ def pkgsplit(pkgname): return cpv def handler(uuid, data, db): + #TODO: Handle exceptions if data['PROTOCOL'] != 1: return 'Unsupported protocol!' |