feat: generate and validate config.ini
All checks were successful
Build / Upload to production (push) Successful in 1m38s

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2025-06-09 01:19:06 +03:00
parent c64075f84d
commit d0357ff7c9
Signed by: mctaylors
GPG key ID: 4EEF4F949A266EE2
7 changed files with 113 additions and 77 deletions

View file

@ -2,7 +2,7 @@ import re
import requests
from typing import Any, Optional
from config import app
import config
def humanize_tags_from_json(value: str, default: str) -> str:
@ -58,7 +58,7 @@ def format_status(data) -> str:
def get_json(pathname: str, query: Optional[list] = None) -> Any | None:
url = [f"http://{app.host}/{pathname}.json"]
url = [f"http://{config.app.host}/{pathname}.json"]
if query is not None:
url.append("?")
url.append("&".join(query))