1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🐛 Save started notebook id on the database

This commit is contained in:
Steffo 2021-10-16 16:24:33 +02:00 committed by Stefano Pigozzi
parent d915673ef7
commit f94bf9f130

View file

@ -367,7 +367,8 @@ class Notebook(SophonGroupModel):
return
self.container_id = container.id
# self.port = container.ports
self.save()
return container
class ContainerError(Exception):
@ -457,7 +458,10 @@ class Notebook(SophonGroupModel):
},
)
self.log.debug("Storing container_id in the SQL database...")
self.container_id = container.id
self.save()
return container
def stop_container(self) -> None: