mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-29 11:01:41 +01:00
fixes
This commit is contained in:
parent
9078fe5cec
commit
0efa3fe7bf
@ -257,7 +257,7 @@ class Subscription:
|
||||
while True:
|
||||
time.sleep(60.0)
|
||||
subscriptions = get_all_subscriptions_from_sql_table(dvm_config.DB)
|
||||
print("Checking " + str(len(subscriptions)) + " entries..")
|
||||
|
||||
for subscription in subscriptions:
|
||||
if subscription.active:
|
||||
if subscription.end < Timestamp.now().as_secs():
|
||||
@ -314,7 +314,8 @@ class Subscription:
|
||||
delete_from_subscription_sql_table(dvm_config.DB, subscription.id)
|
||||
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:
|
||||
print('Stay weird!')
|
||||
os.kill(os.getpid(), signal.SIGTERM)
|
||||
|
@ -1081,7 +1081,7 @@ const closeNWCModal = () => {
|
||||
<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 ">
|
||||
<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">
|
||||
|
||||
<h3 className="card-title">{{dvm.nip88.title}}</h3>
|
||||
@ -1091,8 +1091,6 @@ const closeNWCModal = () => {
|
||||
<h3 className="card-title">Perks:</h3>
|
||||
<div v-for="perk in dvm.nip88.perks">
|
||||
<p style="text-align: left">{{perk}}</p>
|
||||
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<h3 v-if="dvm.nip88.hasActiveSubscription && !dvm.nip88.expires ">Subscription renewing at
|
||||
|
Loading…
x
Reference in New Issue
Block a user