mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-21 22:48:16 +01:00
Add Codename
This commit is contained in:
parent
e3f47e6651
commit
83286150b7
3 changed files with 8 additions and 5 deletions
|
@ -1 +1,2 @@
|
||||||
__version__ = "4.0.3.a2"
|
__version__ = "4.0.4.a1"
|
||||||
|
__codename__ = "Spring Break"
|
||||||
|
|
|
@ -12,7 +12,7 @@ from cbpi.controller.notification_controller import NotificationController
|
||||||
import logging
|
import logging
|
||||||
from os import urandom
|
from os import urandom
|
||||||
import os
|
import os
|
||||||
from cbpi import __version__
|
from cbpi import __version__, __codename__
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from aiohttp_auth import auth
|
from aiohttp_auth import auth
|
||||||
from aiohttp_session import session_middleware
|
from aiohttp_session import session_middleware
|
||||||
|
@ -95,7 +95,8 @@ class CraftBeerPi:
|
||||||
self.path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1]) # The path to the package dir
|
self.path = os.sep.join(os.path.abspath(__file__).split(os.sep)[:-1]) # The path to the package dir
|
||||||
|
|
||||||
self.version = __version__
|
self.version = __version__
|
||||||
|
self.codename = __codename__
|
||||||
|
|
||||||
self.static_config = load_config(os.path.join(".", 'config', "config.yaml"))
|
self.static_config = load_config(os.path.join(".", 'config', "config.yaml"))
|
||||||
|
|
||||||
logger.info("Init CraftBeerPI")
|
logger.info("Init CraftBeerPI")
|
||||||
|
|
|
@ -5,7 +5,7 @@ from cbpi.job.aiohttp import get_scheduler_from_app
|
||||||
import logging
|
import logging
|
||||||
from cbpi.api import request_mapping
|
from cbpi.api import request_mapping
|
||||||
from cbpi.utils import json_dumps
|
from cbpi.utils import json_dumps
|
||||||
from cbpi import __version__
|
from cbpi import __version__, __codename__
|
||||||
import pathlib
|
import pathlib
|
||||||
import os
|
import os
|
||||||
from cbpi.controller.system_controller import SystemController
|
from cbpi.controller.system_controller import SystemController
|
||||||
|
@ -36,7 +36,8 @@ class SystemHttpEndpoints:
|
||||||
step=self.cbpi.step.get_state(),
|
step=self.cbpi.step.get_state(),
|
||||||
fermentersteps=self.cbpi.fermenter.get_fermenter_steps(),
|
fermentersteps=self.cbpi.fermenter.get_fermenter_steps(),
|
||||||
config=self.cbpi.config.get_state(),
|
config=self.cbpi.config.get_state(),
|
||||||
version=__version__)
|
version=__version__,
|
||||||
|
codename=__codename__)
|
||||||
, dumps=json_dumps)
|
, dumps=json_dumps)
|
||||||
|
|
||||||
@request_mapping(path="/logs", auth_required=False)
|
@request_mapping(path="/logs", auth_required=False)
|
||||||
|
|
Loading…
Reference in a new issue