def update_ech(self): from model.database import Database db = Database() constant = db.get_constant() self.ech = constant[0][1]