Skip to content

Commit

Permalink
Merge pull request #88 from lnbits/mak_atm_premium_pct
Browse files Browse the repository at this point in the history
hotfix atm premium
  • Loading branch information
arcbtc authored May 24, 2024
2 parents 705f08d + 93256d3 commit bfae062
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ async def create_tpos(wallet_id: str, data: CreateTposData) -> TPoS:
tpos_id = urlsafe_short_hash()
await db.execute(
"""
INSERT INTO tpos.pos (id, wallet, name, currency, tip_options, tip_wallet, withdrawlimit, withdrawpin, withdrawamt, withdrawtime, withdrawbtwn, withdrawtimeopt, withdrawpindisabled)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
INSERT INTO tpos.pos (id, wallet, name, currency, tip_options, tip_wallet, withdrawlimit, withdrawpin, withdrawamt, withdrawtime, withdrawbtwn, withdrawtimeopt, withdrawpindisabled, withdrawpremium)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
""",
(
tpos_id,
Expand All @@ -38,6 +38,7 @@ async def create_tpos(wallet_id: str, data: CreateTposData) -> TPoS:
data.withdrawbtwn,
data.withdrawtimeopt,
data.withdrawpindisabled,
data.withdrawpremium,
),
)
tpos = await get_tpos(tpos_id)
Expand Down
3 changes: 1 addition & 2 deletions templates/tpos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,9 @@ <h6 class="text-subtitle1 q-my-none">{{SITE_TITLE}} TPoS extension</h6>
dense
v-model.number="formDialog.data.withdrawpremium"
type="number"
label="Withdraw premium (0.00 to 1.00 %)"
label="Withdraw premium %"
step="0.01"
min="0"
max="1"
></q-input>
</template>

Expand Down
1 change: 0 additions & 1 deletion templates/tpos/tpos.html
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,6 @@ <h5 class="q-mt-none q-mb-sm">
// cancel the default action to avoid it being handled twice
event.preventDefault()
})

setInterval(function () {
getRates()
}, 120000)
Expand Down

0 comments on commit bfae062

Please sign in to comment.