aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 20:49:33 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2012-09-26 20:49:33 +0200
commit152da3819ec545f3900d637382e9d78164e8a141 (patch)
tree6dc1e2985791e81abcd3f64261f72e1c51411895
parent8d462c1a4f0938b1c1b1e750f467270e50b4aa74 (diff)
downloadnanocloudlogger-152da3819ec545f3900d637382e9d78164e8a141.tar.gz
nanocloudlogger-152da3819ec545f3900d637382e9d78164e8a141.zip
Updated code format.
-rwxr-xr-xsrc/loggergae/api.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/loggergae/api.py b/src/loggergae/api.py
index e7ff03a..3dd48bd 100755
--- a/src/loggergae/api.py
+++ b/src/loggergae/api.py
@@ -27,18 +27,20 @@ class StreamGet(webapp2.RequestHandler):
if self.request.get('lastid') <> '':
for entry in feed:
if int(self.request.get('lastid')) < entry.key().id():
- response.append({'id': entry.key().id(),
- 'input': str(entry.input),
- 'data': str(entry.data),
- 'datetime': str(entry.datetime)
- })
+ response.append({
+ 'id': entry.key().id(),
+ 'input': str(entry.input),
+ 'data': str(entry.data),
+ 'datetime': str(entry.datetime)
+ })
else:
for entry in feed:
- response.append({'id': entry.key().id(),
- 'input': str(entry.input),
- 'data': str(entry.data),
- 'datetime': str(entry.datetime)
- })
+ response.append({
+ 'id': entry.key().id(),
+ 'input': str(entry.input),
+ 'data': str(entry.data),
+ 'datetime': str(entry.datetime)
+ })
if self.request.get('format') == 'csv':
self.response.headers['Content-Type'] = 'plain/text'