Skip to content

Commit

Permalink
Unbreak tests
Browse files Browse the repository at this point in the history
Looks like sqlobject support for notNull is broken: with 0.12.4 the
description field of a newly created task is None, not "", which
caused TextListRenderer to assume the task had a description.
  • Loading branch information
agateau committed Oct 11, 2012
1 parent 3520c40 commit b73e047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yokadi/textlistrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, width, cryptoMgr):

def __call__(self, task):
keywords = task.getUserKeywordsNameAsString()
hasDescription = task.description != ""
hasDescription = task.description is not None and task.description != ""
title = self.cryptoMgr.decrypt(task.title)
# Compute title, titleWidth and colorWidth
maxWidth = self.width
Expand Down

0 comments on commit b73e047

Please sign in to comment.