Clean up a bit

This commit is contained in:
counterweight 2023-08-02 19:49:36 +02:00
parent dd525668e7
commit 6f24b1f3e0
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 4 additions and 9 deletions

View file

@ -6,8 +6,8 @@ app = typer.Typer()
@app.command()
def check_health(url: str):
controllers.check_health(url)
def check_health():
controllers.check_health()
@app.command()

View file

@ -6,10 +6,5 @@ from woocommerce import API
API_CONFIG = dotenv_values(
dotenv_path=Path.home() / Path(".camisatoshi-wordpress-reports/.env")
)
def check_health(url: str):
print(
f"Ehem... Yeah... so... I've definitely checked {url}... I just don't remember clearly if it was alive or what..."
)
print(Path("~/.camisatoshi-wordpress-reports/.env"))
print(f"By the way, I found this: {API_CONFIG}")
def check_health():
print(f"Connecting to the configured woocomerce at {API_CONFIG['URL']}")