mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
Update dataclasses.py
Returns also None when returned string is empty This change is to address issue #68
This commit is contained in:
parent
e89c42f5dd
commit
55953539da
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Props:
|
||||||
return key in self.__data__
|
return key in self.__data__
|
||||||
|
|
||||||
def get(self, key, d=None):
|
def get(self, key, d=None):
|
||||||
if key in self.__data__:
|
if key in self.__data__ and self.__data__[key] != "":
|
||||||
return self.__data__[key]
|
return self.__data__[key]
|
||||||
else:
|
else:
|
||||||
return d
|
return d
|
||||||
|
|
Loading…
Reference in a new issue