mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-08-08 06:23:09 -04:00
Improve donations page
This commit is contained in:
parent
5390772be8
commit
2a6a42f2d6
3 changed files with 10 additions and 18 deletions
|
@ -13,7 +13,7 @@ from random import randrange
|
|||
import ruamel.yaml
|
||||
import datetime
|
||||
import os.path
|
||||
import qrcode
|
||||
#import qrcode
|
||||
import httpx
|
||||
import os
|
||||
import re
|
||||
|
@ -62,7 +62,7 @@ async def about(request):
|
|||
r = httpx.get(
|
||||
"https://codeberg.org/schylza/schylza/raw/branch/main/SUPPORT.md")
|
||||
donations = yaml.load(r.content)
|
||||
await generate_donations_qrcodes(donations)
|
||||
#await generate_donations_qrcodes(donations)
|
||||
return html(template.render(date=date, title="KYC? Not me!",
|
||||
subtitle="About KYCNOT.ME",
|
||||
support=donations))
|
||||
|
@ -165,6 +165,7 @@ async def gns(request):
|
|||
return text('POST request - {}'.format(request.json))
|
||||
return(html(template.render()))
|
||||
|
||||
'''
|
||||
async def generate_donations_qrcodes(donations):
|
||||
qr = qrcode.QRCode()
|
||||
qr.add_data(donations['xmr'])
|
||||
|
@ -184,6 +185,7 @@ async def generate_donations_qrcodes(donations):
|
|||
xmr.save("static/img/qrcodes/xmr.png")
|
||||
btc.save("static/img/qrcodes/btc.png")
|
||||
nano.save("static/img/qrcodes/nano.png")
|
||||
'''
|
||||
|
||||
async def get_trustpilot_info(service):
|
||||
r = httpx.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue