Exemplo n.º 1
0
    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 該当せず')
Exemplo n.º 2
0
    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 該当せず')
Exemplo n.º 3
0
 def run(self):
     InspectionWord.register(INSPECTION_WORD)
Exemplo n.º 4
0
 def init(self):
     # NGワードを再読み込み
     InspectionWord.register(INSPECTION_WORD)
Exemplo n.º 5
0
 def init(self):
     # NGワードを再読み込み
     InspectionWord.register(INSPECTION_WORD)