Ver Fonte

cleanup

Rodja Trappe há 1 ano atrás
pai
commit
e87035c431
1 ficheiros alterados com 3 adições e 3 exclusões
  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')
         .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'])
 ui.run(storage_secret=os.environ['STORAGE_SECRET'])