Spaces:
Sleeping
Sleeping
pragneshbarik
commited on
Commit
•
f08b7db
1
Parent(s):
df8ae06
fixed errors
Browse files- middlewares/utils.py +2 -2
middlewares/utils.py
CHANGED
@@ -58,7 +58,7 @@ def get_notion_data() :
|
|
58 |
collections = safe_get(row, 'properties.Collection.multi_select')
|
59 |
collection_names = []
|
60 |
for collection in collections :
|
61 |
-
|
62 |
|
63 |
status = safe_get(row, 'properties.Status.select.name')
|
64 |
sup_phone = safe_get(row, 'properties.Supplier Phone.phone_number')
|
@@ -71,7 +71,7 @@ def get_notion_data() :
|
|
71 |
size_names = []
|
72 |
sizes = safe_get(row, 'properties.Size.multi_select')
|
73 |
for size in sizes :
|
74 |
-
|
75 |
|
76 |
rows.append({
|
77 |
'Price Per unit': price,
|
|
|
58 |
collections = safe_get(row, 'properties.Collection.multi_select')
|
59 |
collection_names = []
|
60 |
for collection in collections :
|
61 |
+
collection_names.append(collection['name'])
|
62 |
|
63 |
status = safe_get(row, 'properties.Status.select.name')
|
64 |
sup_phone = safe_get(row, 'properties.Supplier Phone.phone_number')
|
|
|
71 |
size_names = []
|
72 |
sizes = safe_get(row, 'properties.Size.multi_select')
|
73 |
for size in sizes :
|
74 |
+
size_names.append(size['name'])
|
75 |
|
76 |
rows.append({
|
77 |
'Price Per unit': price,
|