cosmetic cleanup

This commit is contained in:
smilerz
2021-03-23 12:32:55 -05:00
parent cb708e7e47
commit 1188ed9227
2 changed files with 5 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ def find_recipe_json(ld_json, url, space):
ld_json['image'] = ""
if 'description' in ld_json:
ld_json['description'] = normalize_string(ld_json['description'] )
ld_json['description'] = normalize_string(ld_json['description'])
else:
ld_json['description'] = ""
@@ -350,6 +350,7 @@ def parse_servings(servings):
servings = 1
return servings
def parse_cooktime(cooktime):
if type(cooktime) not in [int, float]:
try: