def listDelete(self,delta):
l = c.execute("SELECT rowid, * FROM foods WHERE date = ?", (date.isoformat(date.today() - timedelta(delta)),)).fetchall()
self.deleteTable.clear_widgets()
for it in l:
self.deleteTable.add_widget(DelBtn(text='%s - x%s' % (it[1],str(it[4]).replace('.0','')),
secondary_text='kcal: %s' % str(it[3]).replace('.0',''),id = str(it[0])))
评论列表
文章目录