gtg team mailing list archive
-
gtg team
-
Mailing list archive
-
Message #03944
[Merge] lp:~om-bhallamudi/gtg/bugfix into lp:gtg
om bhallamudi has proposed merging lp:~om-bhallamudi/gtg/bugfix into lp:gtg.
Requested reviews:
Gtg developers (gtg)
For more details, see:
https://code.launchpad.net/~om-bhallamudi/gtg/bugfix/+merge/208634
Proposed fix for bug Bug #963891 ( Tags are changed to all-lower-case while conversion to hamster activity Edit )
--
https://code.launchpad.net/~om-bhallamudi/gtg/bugfix/+merge/208634
Your team Gtg developers is requested to review the proposed merge of lp:~om-bhallamudi/gtg/bugfix into lp:gtg.
=== modified file 'GTG/plugins/hamster/hamster.py'
--- GTG/plugins/hamster/hamster.py 2014-01-12 07:15:09 +0000
+++ GTG/plugins/hamster/hamster.py 2014-02-27 16:01:30 +0000
@@ -72,11 +72,11 @@
if task is None:
return
gtg_title = task.get_title()
- gtg_tags = [t.lstrip('@').lower() for t in task.get_tags_name()]
+ gtg_tags = [t.lstrip('@') for t in task.get_tags_name()]
activity = "Other"
if self.preferences['activity'] == 'tag':
- hamster_activities = set([str(x[0]).lower()
+ hamster_activities = set([str(x[0])
for x in self.hamster.GetActivities('')])
activity_candidates = hamster_activities.intersection(
set(gtg_tags))
@@ -100,7 +100,7 @@
if (self.preferences['category'] == 'tag' or
(self.preferences['category'] == 'auto_tag' and not category)):
# See if any of the tags match existing categories
- categories = dict([(str(x[1]).lower(), str(x[1]))
+ categories = dict([(str(x[1]), str(x[1]))
for x in self.hamster.GetCategories()])
lower_gtg_tags = set([x.lower() for x in gtg_tags])
intersection = set(categories.keys()).intersection(lower_gtg_tags)