fix: Typo in domain price
All checks were successful
Build Docker / Build Image (push) Successful in 22s

This commit is contained in:
Nathan Woodburn 2023-11-08 13:01:40 +11:00
parent 45b56dc3cb
commit 894a3f51f2
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 1 additions and 3 deletions

View File

@ -82,7 +82,7 @@ def gift(name,email,referer, ip):
domain = domains_market['domains'][0]['name'] domain = domains_market['domains'][0]['name']
print("Buying: " + domain,flush=True) print("Buying: " + domain,flush=True)
price = int(domains_market['domains'][0]['ammount']) price = int(domains_market['domains'][0]['amount'])
if price > max_price*1000000: if price > max_price*1000000:
return "Domain price too high<br>Check back in a few minutes" return "Domain price too high<br>Check back in a few minutes"

View File

@ -37,11 +37,9 @@ def submit():
ip = request.remote_addr ip = request.remote_addr
if 'X-REAL-IP' in request.headers: if 'X-REAL-IP' in request.headers:
print("X-REAL-IP",flush=True)
ip = request.headers['X-REAL-IP'] ip = request.headers['X-REAL-IP']
if 'X-Real-Ip' in request.headers: if 'X-Real-Ip' in request.headers:
print("X-Real-Ip2",flush=True)
ip = request.headers['X-Real-Ip'] ip = request.headers['X-Real-Ip']
if hidden == '': if hidden == '':