feat(api): Add specification to product name if available
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
16cf984ddc
commit
d03190e810
2
app.py
2
app.py
@ -45,6 +45,8 @@ def add_product(dict_good, location):
|
|||||||
good_name = dict_good["description_cn"]
|
good_name = dict_good["description_cn"]
|
||||||
if not good_name:
|
if not good_name:
|
||||||
return False
|
return False
|
||||||
|
if 'specification' in dict_good:
|
||||||
|
good_name = good_name + " - " + dict_good['specification']
|
||||||
|
|
||||||
locations = get_locations()
|
locations = get_locations()
|
||||||
if not location:
|
if not location:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user