Skip to content

Commit

Permalink
Fix import errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nochiel committed Jul 10, 2023
1 parent 96bbdab commit e6c868d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
20 changes: 10 additions & 10 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
from fastapi import APIRouter
from starlette.staticfiles import StaticFiles
from fastapi.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer

db = Database('ext_jitsi')

jitsi_static_files = [
{
'path': '/jitsi/static',
'app' : StaticFiles(directory = 'lnbits/extensions/jitsi/static'),
'name': 'jitsi_static',
}
]

jitsi_ext = APIRouter(
prefix = '/jitsi',
tags = ['jitsi'],
tags = ['jitsi']
)

jitsi_static_files = [
{
'path': '/jitsi/static',
'app' : StaticFiles(directory = 'lnbits/extensions/jitsi/static'),
'name': 'jitsi_static',
}
]

def jitsi_renderer():
return template_renderer(['lnbits/extensions/jitsi/templates'])

Expand Down
3 changes: 1 addition & 2 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from fastapi import Query
from fastapi.params import Depends
from starlette.exceptions import HTTPException
from fastapi.exceptions import HTTPException

from http import HTTPStatus

Expand All @@ -31,7 +31,6 @@

from lnbits.core.services import (
create_invoice,
check_invoice_status,
pay_invoice,
)

Expand Down

0 comments on commit e6c868d

Please sign in to comment.