Update app.py
Browse files
app.py
CHANGED
@@ -45,9 +45,9 @@ products = []
|
|
45 |
if root is not None:
|
46 |
for item in root.findall('item'):
|
47 |
# Tüm ürünleri al, sonra stokta olma durumunu kontrol et
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
stock_amount = "stokta" if item.find('stockAmount').text > '0' else "stokta değil"
|
53 |
|
|
|
45 |
if root is not None:
|
46 |
for item in root.findall('item'):
|
47 |
# Tüm ürünleri al, sonra stokta olma durumunu kontrol et
|
48 |
+
name_words = item.find('rootlabel').text.lower().split()
|
49 |
+
name = name_words[0]
|
50 |
+
full_name = ' '.join(name_words)
|
51 |
|
52 |
stock_amount = "stokta" if item.find('stockAmount').text > '0' else "stokta değil"
|
53 |
|