Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from werkzeug.utils import secure_filename
|
|
| 12 |
app = Flask(__name__)
|
| 13 |
DATA_FILE = 'data.json'
|
| 14 |
|
| 15 |
-
REPO_ID = "Kgshop/
|
| 16 |
HF_TOKEN_WRITE = os.getenv("HF_TOKEN")
|
| 17 |
HF_TOKEN_READ = os.getenv("HF_TOKEN_READ")
|
| 18 |
|
|
@@ -630,7 +630,7 @@ def catalog():
|
|
| 630 |
orderText += `${index + 1}. ${item.name} - ${item.price} с × ${item.quantity.toFixed(2)} (Цвет: ${item.color})%0A`;
|
| 631 |
});
|
| 632 |
orderText += `Итого: ${total.toFixed(2)} с`;
|
| 633 |
-
window.open(`https://api.whatsapp.com/send?phone=
|
| 634 |
}
|
| 635 |
|
| 636 |
function clearCart() {
|
|
|
|
| 12 |
app = Flask(__name__)
|
| 13 |
DATA_FILE = 'data.json'
|
| 14 |
|
| 15 |
+
REPO_ID = "Kgshop/zalkar"
|
| 16 |
HF_TOKEN_WRITE = os.getenv("HF_TOKEN")
|
| 17 |
HF_TOKEN_READ = os.getenv("HF_TOKEN_READ")
|
| 18 |
|
|
|
|
| 630 |
orderText += `${index + 1}. ${item.name} - ${item.price} с × ${item.quantity.toFixed(2)} (Цвет: ${item.color})%0A`;
|
| 631 |
});
|
| 632 |
orderText += `Итого: ${total.toFixed(2)} с`;
|
| 633 |
+
window.open(`https://api.whatsapp.com/send?phone=996707842888&text=${orderText}`, '_blank');
|
| 634 |
}
|
| 635 |
|
| 636 |
function clearCart() {
|