Skip to content

Commit

Permalink
Set default description and annotation lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
lmacken committed Jul 9, 2013
1 parent 5dc8966 commit 9f3c5c7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bugwarrior/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ def __init__(self, config, target, shorten):
self.config = config
self.target = target
self.shorten = shorten
self.desc_len = self.config.getint('general', 'description_length')
self.anno_len = self.config.getint('general', 'annotation_length')

if config.has_option('general', 'description_length'):
self.desc_len = self.config.getint('general', 'description_length')
else:
self.desc_len = 35
if config.has_option('general', 'annotation_length'):
self.anno_len = self.config.getint('general', 'annotation_length')
else:
self.anno_len = 45
log.name(target).info("Working on [{0}]", self.target)

@classmethod
Expand Down

0 comments on commit 9f3c5c7

Please sign in to comment.