Rodja Trappe 1 年之前
父节点
当前提交
e87035c431
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/docker_image/app/main.py

+ 3 - 3
examples/docker_image/app/main.py

@@ -9,9 +9,9 @@ def index():
         .classes('w-96').bind_value(app.storage.user, 'note')
 
 
-def my_shutdown():
-    print("Shutdown has been initiated!")
+def on_shutdown():
+    print('Shutdown has been initiated!')
 
 
-app.on_shutdown(my_shutdown)
+app.on_shutdown(on_shutdown)
 ui.run(storage_secret=os.environ['STORAGE_SECRET'])