Merge lp:~elopio/ubuntuone-launchpad-scripts/count-tags into lp:ubuntuone-launchpad-scripts

Proposed by Leo Arias on 2012-04-16
Status: Merged
Approved by: Leo Arias on 2012-04-17
Approved revision: 14
Merged at revision: 14
Proposed branch: lp:~elopio/ubuntuone-launchpad-scripts/count-tags
Merge into: lp:ubuntuone-launchpad-scripts
Diff against target: 22 lines (+18/-0)
1 file modified (+18/-0)
To merge this branch: bzr merge lp:~elopio/ubuntuone-launchpad-scripts/count-tags
Reviewer Review Type Date Requested Status
Leo Arias (community) Approve on 2012-04-17
Rick McBride (community) 2012-04-17 Approve on 2012-04-17
Review via email:

Commit message

Added a script that counts the tags on the bugs.

Description of the change

Just a simple script to get the count of tags in the bugs.
It takes a lot of time to run, but it worked for my purposes. Commiting and pushing so it can be improved.

To post a comment you must log in.
Rick McBride (rmcbride) wrote :


review: Approve
Leo Arias (elopio) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file ''
2--- 1970-01-01 00:00:00 +0000
3+++ 2012-04-16 17:07:19 +0000
4@@ -0,0 +1,18 @@
5+from os.path import expanduser, join
6+from launchpadlib.launchpad import Launchpad
7+from collections import Counter
10+home = expanduser("~")
11+cachedir = join(home, ".launchpadlib/cache/")
13+launchpad = Launchpad.login_with('elopio\'s script', 'production', cachedir)
14+ubuntuone = launchpad.projects['ubuntuone']
15+all_tasks = ubuntuone.searchTasks()
16+all_tags = []
18+for task in all_tasks:
19+ bug = task.bug
20+ all_tags = all_tags + bug.tags
22+print Counter(all_tags)


People subscribed via source and target branches

to all changes: