Code cleanup
This commit is contained in:
parent
1bd404af97
commit
b471a18afd
@ -1,6 +1,7 @@
|
|||||||
import abc
|
import abc
|
||||||
from inkycal.custom import *
|
from inkycal.custom import *
|
||||||
|
|
||||||
|
|
||||||
# Set the root logger to level DEBUG to allow any inkycal module to use the
|
# Set the root logger to level DEBUG to allow any inkycal module to use the
|
||||||
# logger for any level
|
# logger for any level
|
||||||
logging.basicConfig(level = logging.DEBUG)
|
logging.basicConfig(level = logging.DEBUG)
|
||||||
@ -67,8 +68,8 @@ class inkycal_module(metaclass=abc.ABCMeta):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_config(cls):
|
def get_config(cls):
|
||||||
# Get the config of this module for the web-ui
|
|
||||||
# Do not change
|
# Do not change
|
||||||
|
# Get the config of this module for the web-ui
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if hasattr(cls, 'requires'):
|
if hasattr(cls, 'requires'):
|
||||||
@ -93,4 +94,4 @@ class inkycal_module(metaclass=abc.ABCMeta):
|
|||||||
'Ohoh, something went wrong while trying to get the config of this module')
|
'Ohoh, something went wrong while trying to get the config of this module')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user