14 lines
318 B
Python
Executable File
14 lines
318 B
Python
Executable File
from .consts import C__CATG__MEMORY
|
|
from .category import IDoitCategory
|
|
|
|
|
|
class IDoitMemory(IDoitCategory):
|
|
|
|
CATEGORY = C__CATG__MEMORY
|
|
|
|
def __init__(self, cfg):
|
|
super().__init__(cfg, self.CATEGORY)
|
|
|
|
def convert_field_with_name_capacity(self, data):
|
|
return float(data['capacity']['title'])
|