def get(self): tables = Timetable.query().fetch() for table in tables: table.isweeka = not table.isweeka table.put()