mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 23:04:21 +00:00
🐛 Save started notebook id on the database
This commit is contained in:
parent
d915673ef7
commit
f94bf9f130
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue