refactor: extract NostrFilter

This commit is contained in:
Vlad Stan 2023-02-17 14:16:24 +02:00
parent 6be0169ea9
commit 2ebc83a286
9 changed files with 132 additions and 128 deletions

View file

@ -1,11 +1,10 @@
import time
from typing import Callable, Optional, Tuple
from .event import NostrEvent
from ..crud import get_account, get_storage_for_public_key, prune_old_events
from ..helpers import extract_domain
from ..models import NostrAccount, RelaySpec
from .event import NostrEvent
class EventValidator: