mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-07 10:22:51 +00:00
Update fediverse.py
This commit is contained in:
parent
3716522a9f
commit
65be31ef59
|
@ -18,7 +18,7 @@ import os.path
|
||||||
from decouple import config
|
from decouple import config
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from server import Filter
|
from server import Extension
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client_encoding = config('CLIENT_ENCODING')
|
client_encoding = config('CLIENT_ENCODING')
|
||||||
|
@ -29,8 +29,10 @@ try:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print ("[*] Invaild configration: %s" % (str(e)))
|
print ("[*] Invaild configration: %s" % (str(e)))
|
||||||
|
|
||||||
class Fediverse(Filter):
|
class Fediverse(Extension):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
self.type = "filter" # this is a filter
|
||||||
|
|
||||||
# Load data to use KnownWords4 strategy
|
# Load data to use KnownWords4 strategy
|
||||||
# Download data: https://github.com/dwyl/english-words
|
# Download data: https://github.com/dwyl/english-words
|
||||||
self.known_words = []
|
self.known_words = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user