We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0026f commit be85256Copy full SHA for be85256
extruct/uniform.py
@@ -14,7 +14,8 @@ def _uopengraph(extracted, with_og_array=False):
14
elif v and v.strip():
15
# If og_array isn't required add first non empty value
16
if not with_og_array:
17
- flattened[k] = flattened[k] if flattened[k] and flattened[k].strip() else v
+ if not flattened[k] or not flattened[k].strip():
18
+ flattened[k] = v
19
else:
20
if isinstance(flattened[k], list):
21
flattened[k].append(v)
0 commit comments