def create_table(table, db):
	db.execute("create table %s (datetime integer PRIMARY KEY ON CONFLICT REPLACE, %s integer)" % (table, table))
	db.execute((table, table) % "create table %s_daily (date integer PRIMARY KEY ON CONFLICT REPLACE, %s integer)")
dataset/ETHPy150Open wadey/python-fitbit/examples/dump2sqlite.py/create_table/swapped operands of `%`