Добавление работы с конфликтными частями и исправление вайтлиста
This commit is contained in:
@@ -158,11 +158,12 @@ class BanWordsRepository:
|
||||
|
||||
async def get_all_banwords(self) -> dict[BanWordType, Set[str]]:
|
||||
result = {
|
||||
BanWordType.SUBSTRING: set(),
|
||||
BanWordType.WORD: set(),
|
||||
BanWordType.LEMMA: set(),
|
||||
BanWordType.PART: set(),
|
||||
BanWordType.CONFLICT_SUBSTRING: set(),
|
||||
BanWordType.CONFLICT_WORD: set(),
|
||||
BanWordType.CONFLICT_LEMMA: set(),
|
||||
BanWordType.CONFLICT_PART: set(),
|
||||
}
|
||||
try:
|
||||
async with self.db.get_session() as session:
|
||||
@@ -335,7 +336,7 @@ class BanWordsRepository:
|
||||
async def get_all_temp_banwords(self) -> dict[BanWordType, Set[str]]:
|
||||
"""Получает все активные временные банворды по типам"""
|
||||
result = {
|
||||
BanWordType.SUBSTRING: set(),
|
||||
BanWordType.WORD: set(),
|
||||
BanWordType.LEMMA: set(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user