def month(m): """Shows both total number of checkins for a month, and individual checkins.""" x = db.cquery("month",m) print "Total:", x[0] #@BUG when zero sometimes displays "1" f = raw_input("[L]ist [N]ew overview or[B]ack to home ").lower() if f == "l": ui.mont1(m) for i in x[1]: print ui.statsid(), i[0]," ",ui.statstime(), i[1] raw_input("[Enter] to go back to search") home_stats() elif f == "n": home_stats() elif f == "b": home() else: raw_input("I didnt get that... Press [Enter] to go back to stats...") home_stats()
def day(d): """ Shows both total number of checkins for a day and the individual checkins""" x = db.cquery("day",d) print "Total:", x[0] f = raw_input("[L]ist [N]ew overview or [B]ack to home ").lower() if f == "l": for i in x[1]: print "ID:", i[0], print "TIME:", i[1] raw_input("[Enter] to go back to search") home_stats() elif f == "n": home_stats() elif f == "b": home() else: pass
def day(d): """ Shows both total number of checkins for a day and the individual checkins""" x = db.cquery("day", d) print "Total:", x[0] f = raw_input("[L]ist [N]ew overview or [B]ack to home ").lower() if f == "l": for i in x[1]: print ui.statsid(), i[0], i[1], " ", ui.statstimein( ), i[2], ui.statstimeout(), i[3] raw_input("[Enter] to go back to search") home_stats() elif f == "n": home_stats() elif f == "b": home() else: pass
def month(m): """Shows both total number of checkins for a month, and individual checkins.""" x = db.cquery("month", m) print "Total:", x[0] #@BUG when zero sometimes displays "1" f = raw_input("[L]ist [N]ew overview or[B]ack to home ").lower() if f == "l": ui.mont1(m) for i in x[1]: print ui.statsid(), i[0], " ", ui.statstime(), i[1] raw_input("[Enter] to go back to search") home_stats() elif f == "n": home_stats() elif f == "b": home() else: raw_input( "I didnt get that... Press [Enter] to go back to stats...") home_stats()