total saldo index

This commit is contained in:
fjrodriguez
2022-11-30 10:12:41 -06:00
parent d91e997fdf
commit 7645eff702
4 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
import requests
from asgiref.sync import sync_to_async
async def req():
results = await sync_to_async(get_saldo, thread_sensitive=True)
def get_saldo(r):
r = requests.get('https://app2.comercio-digital.mx/x3/saldo?usr=SCT050708AD1&pwd=0dcu2SwCv')
return {'saldo':r.text}