summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristofer Hallin <kristofer@sunet.se>2021-10-18 15:15:09 +0200
committerKristofer Hallin <kristofer@sunet.se>2021-10-18 15:15:09 +0200
commit34a353a539f71b6a87413b58ea483b36f94e3516 (patch)
tree180d52e5d5d9d95c05ea7dd8daca1d1ce44b837a
parente6d38941061f89dda3da940c392e8cef7d8a0b01 (diff)
Remove unused variables.
-rwxr-xr-xsrc/db.py8
-rwxr-xr-xsrc/wsgi.py2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/db.py b/src/db.py
index 3dd005a..2308e8c 100755
--- a/src/db.py
+++ b/src/db.py
@@ -1,7 +1,7 @@
-# A database storing dictionaries, keyed on a timestamp.
-# value = A dict which will be stored as a JSON object encoded in
-# UTF-8. Note that dict keys of type integer or float will become
-# strings while values will keep their type.
+# A database storing dictionaries, keyed on a timestamp. value = A
+# dict which will be stored as a JSON object encoded in UTF-8. Note
+# that dict keys of type integer or float will become strings while
+# values will keep their type.
# Note that there's a (slim) chance that you'd stomp on the previous
# value if you're too quick with generating the timestamps, ie
diff --git a/src/wsgi.py b/src/wsgi.py
index b547ffa..8ab178a 100755
--- a/src/wsgi.py
+++ b/src/wsgi.py
@@ -55,8 +55,6 @@ class EPGet(CollectorResource):
limit = 25
skip = 0
- resp.status = falcon.HTTP_200
- resp.content_type = falcon.MEDIA_JSON
orgs = self.user_auth(req.auth, self._users.read_perms)
if not orgs: