File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -80,21 +80,9 @@ async def get_datasets(request):
8080 return response .json (reply )
8181
8282
83- @app .route ("/register-external-state" , methods = ["POST" ])
84- async def external_state (request ):
85- """Register an external state that is detached from any dataset."""
86- hash = request .json ["hash" ]
87- type = request .json ["type" ]
88- logger .debug ("Received external state: {} with hash {}" .format (type , hash ))
89-
90- result = await register_state (request )
9183
92- async with lock_external_states as r :
93- await r .execute ("hset" , "external_state" , type , hash )
9484
95- # TODO: tell kotekan that this happened
9685
97- return result
9886
9987
10088@app .route ("/register-state" , methods = ["POST" ])
Original file line number Diff line number Diff line change 1313REGISTER_STATE = "/register-state"
1414REGISTER_DATASET = "/register-dataset"
1515SEND_STATE = "/send-state"
16- REGISTER_EXTERNAL_STATE = "/register-external-state"
1716STATUS = "/status"
1817STATES = "/states"
1918DATASETS = "/datasets"
You can’t perform that action at this time.
0 commit comments