feat: Add github link and fix a small crash with reserved domains
All checks were successful
Build Docker / Build Docker (push) Successful in 26s
All checks were successful
Build Docker / Build Docker (push) Successful in 26s
This commit is contained in:
parent
9e01262e90
commit
c88e6b90ce
17
domains.py
17
domains.py
@ -162,6 +162,21 @@ def syncDomains():
|
|||||||
print(json.dumps(data, indent=4))
|
print(json.dumps(data, indent=4))
|
||||||
# Check if domain is registered
|
# Check if domain is registered
|
||||||
info = data['result']['info']
|
info = data['result']['info']
|
||||||
|
if (info == None):
|
||||||
|
# Update domain status
|
||||||
|
userDomain['status'] = 'error'
|
||||||
|
userDomain['transfering'] = 0
|
||||||
|
userDomain['next'] = 'open for bidding'
|
||||||
|
userDomain['when'] = 0
|
||||||
|
# Update user domains
|
||||||
|
conn = mysql.connector.connect(**db_config)
|
||||||
|
cursor = conn.cursor()
|
||||||
|
cursor.execute("UPDATE users SET domains = %s WHERE id = %s", (json.dumps(userDomains), userID))
|
||||||
|
conn.commit()
|
||||||
|
cursor.close()
|
||||||
|
conn.close()
|
||||||
|
continue
|
||||||
|
|
||||||
if (userDomain['transfering'] != info['transfer']):
|
if (userDomain['transfering'] != info['transfer']):
|
||||||
# Update domain status
|
# Update domain status
|
||||||
if (notify('transfer', customNotifications, userID)):
|
if (notify('transfer', customNotifications, userID)):
|
||||||
@ -334,4 +349,6 @@ def blocksToTime(blocks):
|
|||||||
if minutes and not years and not days:
|
if minutes and not years and not days:
|
||||||
time_string += f"{minutes} {'min' if minutes == 1 else 'mins'}"
|
time_string += f"{minutes} {'min' if minutes == 1 else 'mins'}"
|
||||||
|
|
||||||
|
if not time_string:
|
||||||
|
time_string = "now"
|
||||||
return time_string.rstrip(', ')
|
return time_string.rstrip(', ')
|
||||||
|
BIN
templates/assets/img/Screenshot_20231211-212453.png
Normal file
BIN
templates/assets/img/Screenshot_20231211-212453.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 190 KiB |
BIN
templates/assets/img/Screenshot_20231211-212905.png
Normal file
BIN
templates/assets/img/Screenshot_20231211-212905.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
BIN
templates/assets/img/Screenshot_20231211-212927.png
Normal file
BIN
templates/assets/img/Screenshot_20231211-212927.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 242 KiB |
@ -133,7 +133,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -48,9 +48,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-lg-10 mx-auto">
|
<div class="col-12 col-lg-10 mx-auto">
|
||||||
<div class="position-relative" style="display: flex;flex-wrap: wrap;justify-content: flex-end;">
|
<div class="position-relative" style="display: flex;flex-wrap: wrap;justify-content: flex-end;">
|
||||||
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-15%, 35%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.8" src="/assets/img/products/3.jpg"></div>
|
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-15%, 35%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.8" src="/assets/img/Screenshot_20231211-212905.png" style="border-style: solid;"></div>
|
||||||
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-5%, 20%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.4" src="/assets/img/products/2.jpg"></div>
|
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-5%, 20%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.4" src="/assets/img/Screenshot_20231211-212453.png" style="border-style: solid;"></div>
|
||||||
<div style="position: relative;flex: 0 0 60%;transform: translate3d(0, 0%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.25" src="/assets/img/products/1.jpg"></div>
|
<div style="position: relative;flex: 0 0 60%;transform: translate3d(0, 0%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.25" src="/assets/img/Screenshot_20231211-212927.png" style="border-style: solid;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -127,7 +127,7 @@
|
|||||||
<div class="card bg-primary-light">
|
<div class="card bg-primary-light">
|
||||||
<div class="card-body text-center px-4 py-5 px-md-5">
|
<div class="card-body text-center px-4 py-5 px-md-5">
|
||||||
<p class="fw-bold text-primary card-text mb-2">Open Source</p>
|
<p class="fw-bold text-primary card-text mb-2">Open Source</p>
|
||||||
<h5 class="fw-bold card-title mb-3">Look at the source code of the project to verify it isn't doing anything shady</h5><button class="btn btn-primary btn-sm" type="button">View the source</button>
|
<h5 class="fw-bold card-title mb-3">Look at the source code of the project to verify it isn't doing anything shady</h5><a class="btn btn-primary btn-sm" role="button" target="_blank" href="https://github.com/nathanwoodburn/hnsalert">View the source</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -135,7 +135,7 @@
|
|||||||
<div class="card bg-secondary-light">
|
<div class="card bg-secondary-light">
|
||||||
<div class="card-body text-center px-4 py-5 px-md-5">
|
<div class="card-body text-center px-4 py-5 px-md-5">
|
||||||
<p class="fw-bold text-secondary card-text mb-2">Self Hosted</p>
|
<p class="fw-bold text-secondary card-text mb-2">Self Hosted</p>
|
||||||
<h5 class="fw-bold card-title mb-3">Host your own alert system to ensure you control all the data</h5><button class="btn btn-secondary btn-sm" type="button">Learn how</button>
|
<h5 class="fw-bold card-title mb-3">Host your own alert system to ensure you control all the data</h5><a class="btn btn-secondary btn-sm" role="button" href="https://l.woodburn.au/discord" target="_blank">Learn how</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -143,7 +143,7 @@
|
|||||||
<div class="card bg-info-light">
|
<div class="card bg-info-light">
|
||||||
<div class="card-body text-center px-4 py-5 px-md-5">
|
<div class="card-body text-center px-4 py-5 px-md-5">
|
||||||
<p class="fw-bold text-info card-text mb-2">Free to use</p>
|
<p class="fw-bold text-info card-text mb-2">Free to use</p>
|
||||||
<h5 class="fw-bold card-title mb-3">HNSAlert is free to use. Please consider donating to help support the development of HNSAlert and other Handshake projects</h5><a class="btn btn-info btn-sm" role="button" href="https://l.woodburn.au/donate">Donate</a>
|
<h5 class="fw-bold card-title mb-3">HNSAlert is free to use. Please consider donating to help support the development of HNSAlert and other Handshake projects</h5><a class="btn btn-info btn-sm" role="button" href="https://l.woodburn.au/donate" target="_blank">Donate</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -245,7 +245,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
|
||||||
<h3 class="fs-6 fw-bold">About</h3>
|
<h3 class="fs-6 fw-bold">About</h3>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
|
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
|
||||||
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
|
||||||
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user