Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent aeb7143 commit 9529c6d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/api/system/general.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import requests
import json

from backend.services.settings_service import SettingsService
from backend.services.messaging.smtp_service import SMTPService
from backend.models.postgis.release_version import ReleaseVersion
from fastapi import APIRouter, Depends, Request
Expand Down Expand Up @@ -183,7 +182,6 @@ async def get():
# return languages.model_dump(by_alias=True), 200



@router.get("/heartbeat/")
async def get(db: Database = Depends(get_db)):
"""
Expand All @@ -204,7 +202,7 @@ async def get(db: Database = Depends(get_db)):
LIMIT 1
"""
release = await db.fetch_one(query)

if release:
release_info = {
"version": release["tag_name"],
Expand All @@ -216,7 +214,6 @@ async def get(db: Database = Depends(get_db)):
return {"status": "Fastapi healthy", "release": release_info}, 200



# class SystemContactAdminRestAPI():
@router.post("/contact-admin/")
async def post(request: Request):
Expand Down

0 comments on commit 9529c6d

Please sign in to comment.