flake8 compliant

This commit is contained in:
brb
2023-07-12 14:03:41 +02:00
parent d5bcf04e61
commit 387986e2d8
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def connect(
# load environment variables
load_dotenv()
ip_addr = os.getenv(
'DB_IP_ADDRESS',
'DB_IP_ADDRESS',
default=DB_IP_ADDRESS
)
db_name = os.getenv(
+5 -1
View File
@@ -27,7 +27,11 @@ def initialise_app(
"""
# load environment variables
load_dotenv()
assert 'USER_ID' in os.environ, 'environment variable USER_ID must be specified'
assert (
'USER_ID' in os.environ
), (
'environment variable USER_ID must be specified'
)
logger_level = os.getenv(
'LOGGER_LEVEL',
default=LOGGER_LEVEL
+1 -1
View File
@@ -123,7 +123,7 @@ if __name__ == '__main__':
)
# extra data flush
if (
time.time() >= data_flush_time and
time.time() >= data_flush_time and
data_queue.qsize() > 0
):
logging.debug('triggered extra data flush')