Skip to content

Commit

Permalink
Merge commit '5519975032721f2e5ad3bf689920e1173cf75cf8' into python-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 22, 2024
2 parents dbdbdaa + 5519975 commit feda5a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
commit = True
tag = True
current_version = 1.5.60
current_version = 1.5.61
message = Bump version: {current_version} → {new_version} [skip ci]

[bumpversion:file:src/main.py]
Expand Down
1 change: 1 addition & 0 deletions src/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def remove_old_cache(
logger.debug(f"Removing {key} from cache, ({value})")
keys_to_remove.append(key)

del last_updated_copy
logger.debug(f"Removing {len(keys_to_remove)} keys from cache")

for key in keys_to_remove:
Expand Down
2 changes: 1 addition & 1 deletion src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_connection():
"""
db_url = os.getenv("DB_URL")
if db_url and db_url.find("postgresql") != -1:
return DatabaseConnection(url=db_url)
return DatabaseConnection(url=db_url, echo=False)
else:
return DummyDBConnection()

Expand Down
5 changes: 4 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Main FastAPI app """

import logging
import os
import time
from datetime import timedelta
Expand All @@ -22,6 +23,8 @@

# flake8: noqa E501

logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO"))

structlog.configure(
processors=[
structlog.processors.EventRenamer("message", replace_by="_event"),
Expand All @@ -45,7 +48,7 @@
folder = os.path.dirname(os.path.abspath(__file__))

title = "Quartz Solar API"
version = "1.5.60"
version = "1.5.61"

sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN"),
Expand Down

0 comments on commit feda5a6

Please sign in to comment.