From 73a47a0db1a181bb305684115d3dacded0c5a58b Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 18 Apr 2010 23:42:11 +0200 Subject: [PATCH] Removed unused stuff from minitwit and fixed a bug. --- examples/minitwit/minitwit.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/minitwit/minitwit.py b/examples/minitwit/minitwit.py index c053e27f..ef0c7673 100644 --- a/examples/minitwit/minitwit.py +++ b/examples/minitwit/minitwit.py @@ -9,7 +9,6 @@ :license: BSD, see LICENSE for more details. """ from __future__ import with_statement -import re import time import sqlite3 from hashlib import md5 @@ -96,7 +95,6 @@ def timeline(): """ if not g.user: return redirect(url_for('public_timeline')) - offset = request.args.get('offset', type=int) return render_template('timeline.html', messages=query_db(''' select message.*, user.* from message, user where message.author_id = user.user_id and ( @@ -123,7 +121,7 @@ def user_timeline(username): [username], one=True) if profile_user is None: abort(404) - followd = False + followed = False if g.user: followed = query_db('''select 1 from follower where follower.who_id = ? and follower.whom_id = ?''',