Skip to content

Commit

Permalink
Ok fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirarism authored Sep 26, 2024
1 parent ded5b96 commit 20d89f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from contextlib import suppress
from asyncio import to_thread, subprocess, create_subprocess_shell
from apscheduler.triggers.date import DateTrigger
from pytz import timezone as zones
import hashlib

api = FastAPI()
Expand Down Expand Up @@ -45,7 +46,7 @@ async def autopay(request: Request):
raise HTTPException(status_code=403, detail="Invalid Signature")
unique_code = data['unique_code']
status = data['status']
exp_date = (datetime.now(jkt) + timedelta(days=30)).strftime("%Y-%m-%d %H:%M:%S")
exp_date = (datetime.now(zones("Asia/Jakarta")) + timedelta(days=30)).strftime("%Y-%m-%d %H:%M:%S")
r = await get_autopay(unique_code)
msg = f"╭────〔 <b>TRANSAKSI SUKSES🎉</b> 〕──\n│・ <b>Transaksi ID :</b> {unique_code}\n│・ <b>Product :</b> MissKaty Support by YS Dev\n│・ <b>Durasi :</b> 30 hari\n│・ <b>Total Dibayar :</b> {r.get('amount')}\n│・ Langganan Berakhir: {exp_date}\n╰─────────"
if not r:
Expand Down

0 comments on commit 20d89f3

Please sign in to comment.