self.pb_modules = pb_modules
def __repr__(self):
- return '<KernelVersion(identifier=\'%s\', last_version=\'%s\')>' %(
- self.identifier, self.last_version
+ return '<KernelVersion(identifier=\'%s\', last_version=\'%s\'), branch_name=\'%s\', pb_modules=\'%s\'>' %(
+ self.identifier, self.last_version, self.branch_name, self.pb_modules
)
def get_last_kernel_revision_obj(branch):
answ = session.query(KernelVersion).filter(
KernelVersion.identifier == persistence_identifier).one()
except NoResultFound:
- session.add(KernelVersion(persistence_identifier, 0))
+ session.add(KernelVersion(persistence_identifier, 0, branch, ''))
session.commit()
answ = session.query(KernelVersion).filter(
KernelVersion.identifier == persistence_identifier).one()