From 0c371e81dfa964c61976015ed11729db9ae34508 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Mon, 25 Sep 2023 15:26:13 +0100 Subject: [PATCH] allow custom path (#17) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * allow custom path * update to minversion 0.11.0 --------- Co-authored-by: dni ⚡ --- __init__.py | 4 +--- config.json | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index b928336..a62265c 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,6 @@ import asyncio from fastapi import APIRouter -from fastapi.staticfiles import StaticFiles from lnbits.db import Database from lnbits.helpers import template_renderer @@ -15,14 +14,13 @@ events_ext: APIRouter = APIRouter(prefix="/events", tags=["Events"]) events_static_files = [ { "path": "/events/static", - "app": StaticFiles(packages=[("lnbits", "extensions/events/static")]), "name": "events_static", } ] def events_renderer(): - return template_renderer(["lnbits/extensions/events/templates"]) + return template_renderer(["events/templates"]) from .tasks import wait_for_paid_invoices diff --git a/config.json b/config.json index bdc8ba6..75f6ff5 100644 --- a/config.json +++ b/config.json @@ -2,5 +2,6 @@ "name": "Events", "short_description": "Sell and register event tickets", "tile": "/events/static/image/events.png", - "contributors": ["benarc"] + "contributors": ["benarc"], + "min_lnbits_version": "0.11.0" }