equal
deleted
inserted
replaced
214 else: |
214 else: |
215 return False |
215 return False |
216 |
216 |
217 def similaritycheck(incoming_str, existingnotes): |
217 def similaritycheck(incoming_str, existingnotes): |
218 """ |
218 """ |
219 Returns true when note fragment can be merged to existing notes. |
219 Returns false when note fragment can be merged to existing notes. |
220 """ |
220 """ |
221 import fuzzywuzzy.fuzz as fuzz |
221 import fuzzywuzzy.fuzz as fuzz |
222 merge = True |
222 merge = True |
223 for bullet in existingnotes: |
223 for bullet in existingnotes: |
224 score = fuzz.token_set_ratio(incoming_str, bullet) |
224 score = fuzz.token_set_ratio(incoming_str, bullet) |