(self, tags_obj, tag)
return ""
Get image id from array of tags
Get image id from array of tags
Get image id from array of tags
def _get_v1_id_from_tags(self, tags_obj, tag):
        """Get image id from array of tags"""
        if isinstance(tags_obj, dict):
            try:
                return tags_obj[tag]
            except KeyError:
                pass
        elif isinstance(tags_obj, list):
            try:
                for tag_dict in tags_obj:
                    if tag_dict["name"] == tag:
                        return tag_dict["layer"]
            except KeyError:
                pass
        return ""
def _get_v1_id_from_tags ( self , tags_obj , tag ) : if isinstance ( tags_obj , dict ) : try : return tags_obj [ tag ] except KeyError : pass elif isinstance ( tags_obj , list ) : try : for tag_dict in tags_obj : if tag_dict [ "name" ] == tag : return tag_dict [ "layer" ] except KeyError : pass return ""