summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-11-17 19:45:55 +0200
committerLars Wirzenius <liw@liw.fi>2018-11-17 19:45:55 +0200
commit8ebc35efea0557283280004b308da24e7054d246 (patch)
tree0e9c444bf138066e2b5c89380ec65fe42c0a0e46
parent1ff1ffceb9a1b6ed6c2bd9bbf8f8f55b8fe8a198 (diff)
downloadmuck-poc-8ebc35efea0557283280004b308da24e7054d246.tar.gz
Fix: typo in function name
-rwxr-xr-xmuck_poc5
1 files changed, 2 insertions, 3 deletions
diff --git a/muck_poc b/muck_poc
index edf59e7..0e37c41 100755
--- a/muck_poc
+++ b/muck_poc
@@ -153,18 +153,17 @@ class MuckAPI:
return self._create_response(200, 'delete', meta, res)
def _search_res(self, claims):
- def is_showble(rid):
+ def is_showable(rid):
try:
meta, res = self._get_existing(rid)
except bottle.HTTPError as e:
return False
- return self._access_is_allowed(meta, claims):
+ return self._access_is_allowed(meta, claims)
body = self._get_json_body()
cond = body.get('cond')
ms = self._store.get_memory_store()
- hits = ms.search(cond)
hits = [
rid
for rid in ms.search(cond)