|
@@ -17,7 +17,9 @@ class Demo:
|
|
|
sheet = Feishu.get_values_batch(log_type, 'zmyx', '19c772')
|
|
|
for i in range(1, len(sheet)):
|
|
|
video_title = sheet[i][7]
|
|
|
- if difflib.SequenceMatcher(None, title, video_title).quick_ratio() >= 0.8:
|
|
|
+ if video_title is None:
|
|
|
+ pass
|
|
|
+ elif difflib.SequenceMatcher(None, title, video_title).quick_ratio() >= 0.8:
|
|
|
return True
|
|
|
else:
|
|
|
pass
|
|
@@ -25,5 +27,5 @@ class Demo:
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
# Demo.get_sheet('recommend', 'zmyx', '19c772')
|
|
|
- print(Demo.title_like('recommend', '国人幡然泪下!!!'))
|
|
|
+ print(Demo.title_like('recommend', '这个老大爷太惨了'))
|
|
|
pass
|