Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Mar 31, 2013
1 parent 727c7ee commit d7a73de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions elephant.py
Expand Up @@ -224,10 +224,8 @@ def collection(self):

@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']

Expand Down

0 comments on commit d7a73de

Please sign in to comment.