From 574e798cbd5cd6311fe0d5ba857c216939ed71dd Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 15 Nov 2011 14:17:00 +0100 Subject: [PATCH 1/1] fixes --- apps/poetry/models.py | 2 +- apps/poetry/templates/poetry/main.html | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/apps/poetry/models.py b/apps/poetry/models.py index b0d15b1..ef8bf94 100644 --- a/apps/poetry/models.py +++ b/apps/poetry/models.py @@ -30,7 +30,7 @@ class Poet(models.Model): stdout=subprocess.PIPE, stderr=subprocess.PIPE) os.chdir(curdir) stdout, stderr = proc.communicate() - text = stdout.decode("utf-8")[:1000] + text = unicode(stdout, "utf-8", errors="ignore")[:1000] slug = get_hash(text) title = '' if self.first_line_title: diff --git a/apps/poetry/templates/poetry/main.html b/apps/poetry/templates/poetry/main.html index 76fdf09..9e0ea4d 100644 --- a/apps/poetry/templates/poetry/main.html +++ b/apps/poetry/templates/poetry/main.html @@ -29,22 +29,6 @@ Turniej Elektrybałtów {% for poet in poets %}
  • {{ poet }} (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • {% endfor %} -- 2.20.1