Skip to content

Instantly share code, notes, and snippets.

@jallen89
Created June 25, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jallen89/7f3bedf7942d64db79bc7ffa5274b221 to your computer and use it in GitHub Desktop.
Save jallen89/7f3bedf7942d64db79bc7ffa5274b221 to your computer and use it in GitHub Desktop.
def get_cdm_uuid(self, cdm):                                                
        cdm_uuid = cdm['datum']['uuid']                                         
        if type(cdm_uuid ) == unicode:                                          
            return str(cdm_uuid)                                                
        uuid_str = str(uuid.UUID(bytes = cdm_uuid))                             
        return uuid_str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment