Download:
child 165:7d1baf2f0b87
parent 163:876252149291
164:3c8449c7f119
Anton Shestakov <av6@dwimlabs.net>, Tue, 19 Jul 2016 20:51:01 +0800
queue: slightly more useful response from hook handler

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
hooks-queue.py file | annotate | diff | comparison | revisions
--- a/hooks-queue.py Tue Jul 19 12:41:27 2016 +0800
+++ b/hooks-queue.py Tue Jul 19 20:51:01 2016 +0800
@@ -43,7 +43,7 @@
self.rconn.rpush('candolint:queue:changes', data)
logging.info('Pushed a change for %s', item['repo'])
- self.finish({'message': 'OK, added {}'.format(len(hashes))})
+ self.finish({'result': 'OK', 'queued': len(hashes)})
@property
def rconn(self):