LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File trac-discussion-plugin.no-ifelse-timeline-01.patch of Package trac-discussion-plugin (Project home:guidod:trac12)

--- 0.11/tracdiscussion/timeline.py.orig	2011-08-18 20:32:59.000000000 +0200
+++ 0.11/tracdiscussion/timeline.py	2011-08-18 20:33:46.000000000 +0200
@@ -70,2 +70,2 @@
-                yield ('discussion solved' if 'solved' in topic['status']
-                  else 'discussion unsolved', to_datetime(topic['time'], utc),
+                yield (('solved' in topic['status'] and 'discussion solved' or
+                  'discussion unsolved'), to_datetime(topic['time'], utc),