Remove the method to get name and count for 'addItem' command.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-06-20 19:28:19 +03:00
parent fc33d5c63f
commit 6003b2b8cf
2 changed files with 0 additions and 38 deletions
-15
View File
@@ -17,18 +17,3 @@ class ItemFormatter(AbstractFormatter):
return formated_message
def get_name_and_count_from_parts(self, parts: list):
line = " ".join(parts)
if not ', ' in line:
return {
'error': 'Не правильний формат'
}
name, count = line.split(', ')
return {
'name': name,
'count': int(count)
}