Skip to content
Browse files

Removed unused stuff from minitwit and fixed a bug.

  • Loading branch information...
1 parent 0770f5c commit 73a47a0db1a181bb305684115d3dacded0c5a58b @mitsuhiko committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 examples/minitwit/minitwit.py
View
4 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 = ?''',

0 comments on commit 73a47a0

Please sign in to comment.
Something went wrong with that request. Please try again.