Code cleanup

This commit is contained in:
Joel Collins 2020-10-14 14:56:29 +00:00
parent 2bfb988460
commit 994e83dbeb
46 changed files with 261 additions and 318 deletions

View file

@ -53,7 +53,6 @@ _actions = {
def enabled_root_actions():
global _actions
return {k: v for k, v in _actions.items() if v["conditions"]}
@ -65,8 +64,6 @@ class ActionsView(View):
This list does not include any actions added by LabThings extensions, only
those part of the default OpenFlexure Microscope API.
"""
global _actions
actions = {}
for name, action in enabled_root_actions().items():
d = {