def create_notification(self, user_id: int, amount: int, price: Decimal, order_of_name: str, received: bool): notification = Notification.order(user_id, amount, price, order_of_name, received) self.notifications.append(notification)
def create_notification(self, user: User, amount: int, price: Decimal, order_of: Company, received: bool): notification = Notification.order(user, amount, price, order_of, received) self.notfications.append(notification)