fix(backend): Provide version, fix metadata
continuous-integration/woodpecker the build was successful Details

This commit is contained in:
Ferdinand Thiessen 2021-12-23 03:24:12 +01:00
parent 166073fb55
commit 75fa825962
1 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,7 @@
Provides duty schedule / duty roster functions
"""
import pkg_resources
from flask import Blueprint, current_app
from werkzeug.local import LocalProxy
@ -9,12 +10,15 @@ from flaschengeist.plugins import Plugin
from . import permissions, models
__version__ = pkg_resources.get_distribution("flaschengeist_events").version
class EventPlugin(Plugin):
name = "events"
id = "dev.flaschengeist.plugins.events"
plugin = LocalProxy(lambda: current_app.config["FG_PLUGINS"][EventPlugin.name])
id = "dev.flaschengeist.events"
plugin = LocalProxy(lambda: current_app.config["FG_PLUGINS"][EventPlugin.id])
# provided resources
permissions = permissions.permissions
blueprint = Blueprint(name, __name__)
blueprint = Blueprint("events", __name__)
models = models
def __init__(self, cfg):