mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-11 08:20:50 +02:00
fixes
This commit is contained in:
parent
9078fe5cec
commit
0efa3fe7bf
@ -257,7 +257,7 @@ class Subscription:
|
|||||||
while True:
|
while True:
|
||||||
time.sleep(60.0)
|
time.sleep(60.0)
|
||||||
subscriptions = get_all_subscriptions_from_sql_table(dvm_config.DB)
|
subscriptions = get_all_subscriptions_from_sql_table(dvm_config.DB)
|
||||||
print("Checking " + str(len(subscriptions)) + " entries..")
|
|
||||||
for subscription in subscriptions:
|
for subscription in subscriptions:
|
||||||
if subscription.active:
|
if subscription.active:
|
||||||
if subscription.end < Timestamp.now().as_secs():
|
if subscription.end < Timestamp.now().as_secs():
|
||||||
@ -314,7 +314,8 @@ class Subscription:
|
|||||||
delete_from_subscription_sql_table(dvm_config.DB, subscription.id)
|
delete_from_subscription_sql_table(dvm_config.DB, subscription.id)
|
||||||
print("Delete expired subscription")
|
print("Delete expired subscription")
|
||||||
|
|
||||||
print(str(Timestamp.now().as_secs()) + " Checking Subscription")
|
print(str(Timestamp.now().as_secs()) + ": Checking " + str(len(subscriptions)) + "Subscription entries..")
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('Stay weird!')
|
print('Stay weird!')
|
||||||
os.kill(os.getpid(), signal.SIGTERM)
|
os.kill(os.getpid(), signal.SIGTERM)
|
||||||
|
@ -1081,7 +1081,7 @@ const closeNWCModal = () => {
|
|||||||
<dialog id="subscr" class="modal">
|
<dialog id="subscr" class="modal">
|
||||||
<div className="modal-box rounded-3xl inner shadow-lg p-6 flex flex-col items-center transition-all duration-1000 bg-gradient-to-br from-pink-500 to-orange-400 ">
|
<div className="modal-box rounded-3xl inner shadow-lg p-6 flex flex-col items-center transition-all duration-1000 bg-gradient-to-br from-pink-500 to-orange-400 ">
|
||||||
<h3 class="font-bold text-lg">Manage your Subscription</h3>
|
<h3 class="font-bold text-lg">Manage your Subscription</h3>
|
||||||
<img style="flex: content" :src="dvm.nip88.image"></img>
|
<img style="flex: content; width: 300px" :src="dvm.nip88.image"></img>
|
||||||
<div class="glass" className="card-body">
|
<div class="glass" className="card-body">
|
||||||
|
|
||||||
<h3 className="card-title">{{dvm.nip88.title}}</h3>
|
<h3 className="card-title">{{dvm.nip88.title}}</h3>
|
||||||
@ -1091,8 +1091,6 @@ const closeNWCModal = () => {
|
|||||||
<h3 className="card-title">Perks:</h3>
|
<h3 className="card-title">Perks:</h3>
|
||||||
<div v-for="perk in dvm.nip88.perks">
|
<div v-for="perk in dvm.nip88.perks">
|
||||||
<p style="text-align: left">{{perk}}</p>
|
<p style="text-align: left">{{perk}}</p>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<h3 v-if="dvm.nip88.hasActiveSubscription && !dvm.nip88.expires ">Subscription renewing at
|
<h3 v-if="dvm.nip88.hasActiveSubscription && !dvm.nip88.expires ">Subscription renewing at
|
||||||
|
Loading…
x
Reference in New Issue
Block a user