Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 22, 2024
1 parent 2427899 commit 5834e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,7 @@ window.app = Vue.createApp({
lines.push('callbackUrl=' + window.bleskomat_vars.callback_url)
lines.push('shorten=true')
var content = lines.join('\n')
var status = Quasar.utils.exportFile(
'bleskomat.conf',
content,
'text/plain'
)
var status = Quasar.exportFile('bleskomat.conf', content, 'text/plain')
if (status !== true) {
Quasar.plugins.Notify.create({
message: 'Browser denied file download...',
Expand Down
5 changes: 1 addition & 4 deletions views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from fastapi import APIRouter, Depends, Request
from fastapi.templating import Jinja2Templates
from lnbits.core.models import User
from lnbits.decorators import check_user_exists
from lnbits.helpers import template_renderer
Expand All @@ -8,8 +7,6 @@
from .exchange_rates import exchange_rate_providers_serializable, fiat_currencies
from .helpers import get_callback_url

templates = Jinja2Templates(directory="templates")


def bleskomat_renderer():
return template_renderer(["bleskomat/templates"])
Expand All @@ -27,5 +24,5 @@ async def index(req: Request, user: User = Depends(check_user_exists)):
}
return bleskomat_renderer().TemplateResponse(
"bleskomat/index.html",
{"request": req, "user": user.dict(), "bleskomat_vars": bleskomat_vars},
{"request": req, "user": user.json(), "bleskomat_vars": bleskomat_vars},
)

0 comments on commit 5834e6f

Please sign in to comment.