feat: generate and validate config.ini
All checks were successful
Build / Upload to production (push) Successful in 1m38s
All checks were successful
Build / Upload to production (push) Successful in 1m38s
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
c64075f84d
commit
d0357ff7c9
7 changed files with 113 additions and 77 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue