From: Vincent Le Gallic Date: Tue, 28 Jul 2015 03:33:45 +0000 (+0200) Subject: On n'affiche pas le contexte dans le channel X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fparrot.git;a=commitdiff_plain;h=fc73b676beb4d5acbeed51f4a2f91014f86448bc On n'affiche pas le contexte dans le channel --- diff --git a/quotes.py b/quotes.py index 5c1a58e..85d290e 100644 --- a/quotes.py +++ b/quotes.py @@ -59,10 +59,7 @@ class Quote(object): def __unicode__(self): """ Retourne la quote affichable """ - if self.place and self.place.strip() != u"": - return config.quote_template_withcontext % self.__dict__ - else: - return config.quote_template % self.__dict__ + return config.quote_template % self.__dict__ def __str__(self): return unicode(self).encode("utf-8")