feat(backend): full remote implementation, untested
This commit is contained in:
1 parent
0705f4abc5
commit
5009a4eb4c
8 files changed
+485
-33
No files matched your search
@@ -146,9 +146,10 @@ class Agent:
|
||||
else:
|
||||
return 'user'
|
||||
|
||||
# Returns all resource values matching the kind and key
|
||||
def get_resources(self, kind, key):
|
||||
pass # TODO lol
|
||||
# Returns all resource values matching the kind, and the key when given
|
||||
def get_resources(self, kind, key=None):
|
||||
return [r for r in self.resources
|
||||
if r.kind == kind and (key is None or r.key == key)]
|
||||
|
||||
|
||||
class DebugAgent(Agent):
|
||||
|
||||
Reference in new issue
Block a user