feat(api): Add specification to product name if available
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ching 2024-03-03 21:10:06 +08:00
parent 16cf984ddc
commit d03190e810

2
app.py
View File

@ -45,6 +45,8 @@ def add_product(dict_good, location):
good_name = dict_good["description_cn"]
if not good_name:
return False
if 'specification' in dict_good:
good_name = good_name + " - " + dict_good['specification']
locations = get_locations()
if not location: