This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import json
|
||||
from typing import List, Dict
|
||||
|
||||
from orm.notification import Notification
|
||||
from services.db import local_session
|
||||
from services.rediscache import redis
|
||||
|
||||
|
||||
def handle_reaction(notification: Dict[str, str | int | List[int]]):
|
||||
def handle_reaction(notification: dict[str, str | int]):
|
||||
"""создаеёт новое хранимое уведомление"""
|
||||
try:
|
||||
with local_session() as session:
|
||||
|
Reference in New Issue
Block a user