esc-reporting/qa-tools.py |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit c8f85eb4fdbdd7b590692468c4ab716807583003
Author: Xisco Fauli <aniste...@gmail.com>
Date:   Tue Dec 27 10:26:08 2016 +0100

    Use a shortener for the links

diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py
index 487df88..8ca59ed 100755
--- a/esc-reporting/qa-tools.py
+++ b/esc-reporting/qa-tools.py
@@ -11,8 +11,9 @@ import sys
 import os
 import datetime
 import json
+from pyshorteners import Shortener
 
-homeDir = '/home/xisco/stats/'
+homeDir = '/home/xisco/dev-tools/esc-reporting/'
 
 reportPeriod = '7d'
 
@@ -409,7 +410,8 @@ def util_print_QA_line(fp, statList, string, number, tuple, 
action):
         url += str(bug) + "%2C"
 
     url = url[:-3]
-    print('\tLink: ' + url, file=fp)
+    shortener = Shortener('Tinyurl', timeout=9000)
+    print('\tLink: ' + shortener.short(url), file=fp)
 
     if not action == 'created':
         #Count the number of reps
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to