Skip to content

Production#1

Open
1Sting1 wants to merge 1 commit intomainfrom
for_pull
Open

Production#1
1Sting1 wants to merge 1 commit intomainfrom
for_pull

Conversation

@1Sting1
Copy link
Copy Markdown
Owner

@1Sting1 1Sting1 commented Mar 25, 2024

No description provided.

Copy link
Copy Markdown

@VolovikovAlexander VolovikovAlexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправить ошибки. Тесты не вижу. Но в любом случае - начало положено Хорошо.

Comment thread storage_prototype.py

def filter(self, start_period: datetime, stop_period: datetime):
def date_filter(self, start_period: datetime, stop_period: datetime):
"""
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Две строки

    def filter(self, start_period: datetime, stop_period: datetime):
        def date_filter(self, start_period: datetime, stop_period: datetime):
        ```
        
        Уверены, что работает?

Comment thread storage_prototype.py
result = []
for item in self.__data:
if item.nomenclature.id == nomenclature.id:
result.append(item)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да. Верно

Comment thread storage_service.py
'unit': transaction.unit,
'value': -transaction.value
}
debits.append(debit_transaction)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не верно Не нужно словарь включать, а нужно объект Транзакция

Comment thread storage_service.py
raise argument_exception("Некорректно переданы параметры!")

prototype = storage_prototype(self.__data)
filtred_data = prototype.filter(receipt_row)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут не верно. У Вас метод prototype.filter фильтрует по периоду, а не по рецепту

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants