Ejemplo n.º 1
0
 def artist_matches():
     if 'performersCollection' in event:
         performers = [x['name'] for x in event['performersCollection']
                       if 'name' in x]
         #print fuzzy.best_match_all(artist, performers)[0][1]
         return fuzzy.best_match_all(artist, performers)[0][1] > 0.85
     return False
Ejemplo n.º 2
0
 def artist_matches():
     if 'performersCollection' in event:
         performers = [
             x['name'] for x in event['performersCollection'] if 'name' in x
         ]
         #print fuzzy.best_match_all(artist, performers)[0][1]
         return fuzzy.best_match_all(artist, performers)[0][1] > 0.85
     return False
Ejemplo n.º 3
0
 def venue_matches():
     #print fuzzy.best_match_all(event_info[0], [event['venue']['name']])[0][1]
     return fuzzy.best_match_all(event_info[0],
                                 [event['venue']['name']])[0][1] > 0.85
Ejemplo n.º 4
0
 def venue_matches():
     #print fuzzy.best_match_all(event_info[0], [event['venue']['name']])[0][1]
     return fuzzy.best_match_all(event_info[0], [event['venue']['name']])[0][1] > 0.85