mirror of
https://github.com/not-kennethreitz/elephant.git
synced 2026-06-05 23:20:19 +00:00
fixes
This commit is contained in:
+2
-4
@@ -224,10 +224,8 @@ class Record(object):
|
||||
|
||||
@classmethod
|
||||
def _from_uuid(cls, uuid, collection=None):
|
||||
if collection:
|
||||
uuid = '{}/{}'.format(collection, uuid)
|
||||
else:
|
||||
collection = uuid.split('/')[0]
|
||||
if collection is None:
|
||||
collection, uuid = uuid.split('/', 2)
|
||||
|
||||
result = ES.get(collection, 'record', uuid)['_source']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user