sdf
This commit is contained in:
parent
4d72175bca
commit
ea8fda702b
Binary file not shown.
Binary file not shown.
|
|
@ -13,10 +13,10 @@ sys.path.insert(0, project_root)
|
|||
|
||||
# print(db_price)
|
||||
|
||||
download_products()
|
||||
# download_products()
|
||||
download_prices()
|
||||
|
||||
decrypt_and_unpack("prices")
|
||||
decrypt_and_unpack("products")
|
||||
add_product()
|
||||
# decrypt_and_unpack("products")
|
||||
# add_product()
|
||||
update_prices()
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ def get_order_content(order_id):
|
|||
return content
|
||||
|
||||
|
||||
# content = get_order_content(5388351)
|
||||
# content = get_order_content(5388720)
|
||||
# print(content)
|
||||
|
||||
# orders = get_orders()
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ def update_prices():
|
|||
data = []
|
||||
for item in prices:
|
||||
sku = item["sku"]
|
||||
price = item.get("basePrice")
|
||||
price = item.get("price")
|
||||
price_gg = item.get("baseSuggestedRetailPrice")
|
||||
price_sales =item.get("discountPercentage")
|
||||
is_sale = item.get("isSale")
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -4,7 +4,7 @@ import os
|
|||
import sqlite3
|
||||
import json
|
||||
# from services.rokky import ones
|
||||
from API.rok import create_order
|
||||
from API.rok import create_order, get_order_content
|
||||
from API.TG import send_telegram
|
||||
from services.orders import get_sku
|
||||
from services.gg import get_product, create_messagea
|
||||
|
|
@ -68,7 +68,7 @@ def index1():
|
|||
return jsonify({"error": str(e)}), 500
|
||||
|
||||
conn.close()
|
||||
create_order(sku_rokky, price_rokky, id_i)
|
||||
send_telegram(create_order(sku_rokky, price_rokky, id_i))
|
||||
|
||||
return jsonify({"success": True}), 200
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ def send_html_flow(ids):
|
|||
"year": 2026
|
||||
}
|
||||
to_addr = row[5]
|
||||
# send_html_email(to_addr, data)
|
||||
send_html_email(to_addr, data)
|
||||
message = (
|
||||
f"🔹Спасибо за покупку в WST Keys (West Store Trusted Keys)\n\n"
|
||||
f"🔑 Ваш ключ: {row[13]}\n\n"
|
||||
|
|
@ -77,7 +77,7 @@ def send_html_flow(ids):
|
|||
"💬 Если у вас возникнут вопросы — напишите нам.\n"
|
||||
"⭐️ Нам очень важно ваше мнение, пожалуйста, оставьте отзыв."
|
||||
)
|
||||
create_messagea(row[0], message )
|
||||
create_messagea(row[1], message )
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue