Method used to retrieve and return a list of the items in the database table login.
def retrieve(self):
if self.yearGroup is None:
items.execute("SELECT Name_item FROM None_yeargroup_specific WHERE departmentName=?", (self.departmentName,))
identity = items.fetchall()
Database.commit()
for i in identity:
self.list.append(i[0])
return self.list
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…