Download:
child 153:c50882dabe4f
parent 151:640c160d89a2
152:48220f17a776
Anton Shestakov <av6@dwimlabs.net>, Sun, 17 Jul 2016 23:19:13 +0800
queue: data is a string, we need item (TypeError)

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
hooks-queue.py file | annotate | diff | comparison | revisions
--- a/hooks-queue.py Sun Jul 17 23:13:19 2016 +0800
+++ b/hooks-queue.py Sun Jul 17 23:19:13 2016 +0800
@@ -40,7 +40,7 @@
data = json.dumps(item)
logging.debug('Pushing %s', data)
self.rconn.rpush('candolint:queue:changes', data)
- logging.info('Pushed a change for %s', data['repo'])
+ logging.info('Pushed a change for %s', item['repo'])
self.finish({'message': 'OK, added {}'.format(len(items))})