Skip to content

Commit

Permalink
Cleanup formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kostajh committed Jan 23, 2013
1 parent 78ce70c commit d117667
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bugwarrior/services/activecollab2.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ def get_issue_url(self, issue):
def get_project_name(self, issue):
return issue['project']

def description(self, title, project_id, url, ticket_id="", cls="ticket"):
def description(self, title, project_id, ticket_id="", cls="ticket"):

cls_markup = {
'ticket': '#',
'task': 'Task',
}

# TODO -- get the '35' here from the config.
return "%s%s%s - %s .. %s" % (
# TODO -- get the '45' here from the config.
return "%s%s%s - %s" % (
MARKUP, cls_markup[cls], str(ticket_id),
title[:35], self.shorten(url),
title[:45],
)

def format_annotation(self, created, permalink):
Expand Down Expand Up @@ -167,7 +167,7 @@ def issues(self):
return [dict(
description=self.description(
issue["description"],
issue["project_id"], issue['permalink'], issue["ticket_id"], issue["type"],
issue["project_id"], issue["ticket_id"], issue["type"],
),
project=self.get_project_name(issue),
priority=self.default_priority,
Expand Down

0 comments on commit d117667

Please sign in to comment.