def count():
cur = CONN.cursor()
cur.execute("SELECT COUNT(id) FROM points")
print cur.fetchone()[0]
should be
def count():
cur = CONN.cursor()
cur.execute("SELECT COUNT(uid) FROM points")
print cur.fetchone()[0]
It's uid not id
Original issue reported on code.google.com by rattlece...@gmail.com on 24 Jul 2008 at 2:44
Original issue reported on code.google.com by
rattlece...@gmail.com
on 24 Jul 2008 at 2:44