Commits

anatoly techtonik committed dabc07b

Measure completion time - 5 minutes to query all open issues with
all files cached.

Comments (0)

Files changed (1)

 from os import makedirs
 from os.path import abspath, exists, dirname
 from sys import version_info
+from datetime import datetime
+
+START = datetime.now()
 
 PY3K = version_info >= (3, 0)
 if PY3K:
 patch_keyword = bpo.lookup('keyword', 'patch')
 
 open_issues = bpo.filter('issue', None, {'status':open_status, 'keywords':patch_keyword})
-#print(open_issues)
-print('Opened issues with patch keyword: %s' % len(open_issues))
+print('Open issues with patch keyword: %s' % len(open_issues))
 
 
 # -- 2. read patch files for each issue and get paths per issue
   for filen in issue_patches[issue]:
     files_attached += 1
     fileget(filen)
+
+print('')
+print('Open issues with patch keyword: %s' % len(open_issues))
+print('Number of files attached: %s' % files_attached)
+print('')
+print('Finished in %s' % (datetime.now() - START))