samangel93 / gheat

Automatically exported from code.google.com/p/gheat
0 stars 0 forks source link

id is used in count #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
 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

GoogleCodeExporter commented 8 years ago
Fixed in r21. Thanks.

Original comment by whit537@gmail.com on 24 Jul 2008 at 12:55