diff options
| author | Xisco Fauli <anistenis@gmail.com> | 2016-12-27 10:26:08 +0100 |
|---|---|---|
| committer | Xisco Fauli <anistenis@gmail.com> | 2016-12-27 10:29:17 +0100 |
| commit | c8f85eb4fdbdd7b590692468c4ab716807583003 (patch) | |
| tree | 8c030b867a11bd76306e6398e005ce183aed987e | |
| parent | 136a2d65c494e6bcb477507e88f2d6493c94b12b (diff) | |
Use a shortener for the links
| -rwxr-xr-x | esc-reporting/qa-tools.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py index 487df881..8ca59eda 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 |
