1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +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 a2c24111ae
commit 93a8994e9f

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: