def run(self, word): if word is None: raise ValueError('word is None: python manage.py check --word="あいう"') # insert InspectionWord.register(INSPECTION_WORD) # ck if InspectionWord.inspection(word): print('True NGワードに該当') return if inspection_affiliate(word): print('True アフィチェックに該当') return print('False 該当せず')
def run(self, word): if word is None: raise ValueError( 'word is None: python manage.py check --word="あいう"') # insert InspectionWord.register(INSPECTION_WORD) # ck if InspectionWord.inspection(word): print('True NGワードに該当') return if inspection_affiliate(word): print('True アフィチェックに該当') return print('False 該当せず')
def run(self): InspectionWord.register(INSPECTION_WORD)
def init(self): # NGワードを再読み込み InspectionWord.register(INSPECTION_WORD)