Remove the method to get name and count for 'addItem' command.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user