Closed CremaLuca closed 1 year ago
https://github.com/Slthy/Microplus-Lenex/blob/b6380314e274b9a568c6320ebd00d117442f74a9/functions.py#L26-L27 can be more-easily read as
file_type = utils.FILE_TYPES.get(obj['cod'], "other")
and then use file_type instead of utils.FILE_TYPES[file_type] at line 31 https://github.com/Slthy/Microplus-Lenex/blob/b6380314e274b9a568c6320ebd00d117442f74a9/functions.py#L31
file_type
utils.FILE_TYPES[file_type]
You can also remove "other" from FILE_TYPES
https://github.com/Slthy/Microplus-Lenex/blob/b6380314e274b9a568c6320ebd00d117442f74a9/functions.py#L26-L27 can be more-easily read as
and then use
file_type
instead ofutils.FILE_TYPES[file_type]
at line 31 https://github.com/Slthy/Microplus-Lenex/blob/b6380314e274b9a568c6320ebd00d117442f74a9/functions.py#L31You can also remove "other" from FILE_TYPES