Compare commits
No commits in common. "main" and "1.4.16" have entirely different histories.
@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "1.4.19"
|
||||
current_version = "1.4.16"
|
||||
commit = true
|
||||
tag = true
|
||||
tag_name = "{new_version}"
|
||||
|
1
app.py
1
app.py
@ -558,7 +558,6 @@ def _update_npm_config(credentials=None):
|
||||
print("Unauthorized attempt to update NPM config.")
|
||||
return False
|
||||
credentials = session.get("auth_credentials")
|
||||
# If credentials are provided, we skip the session check as the user has already been authenticated
|
||||
|
||||
npm = NginxProxyManager(app.config['NPM_HOST'], app.config['NPM_EMAIL'], app.config['NPM_PASSWORD'])
|
||||
npm.login()
|
||||
|
@ -2,7 +2,6 @@ import requests
|
||||
import json
|
||||
from datetime import datetime
|
||||
from typing import List, Dict, Any, Optional
|
||||
import time
|
||||
|
||||
# Create a session object to reuse TCP connections
|
||||
session = requests.Session()
|
||||
@ -41,16 +40,13 @@ def _make_api_request(
|
||||
|
||||
def get_urls(base_url: str, auth: str) -> List[Dict[str, Any]]:
|
||||
"""Retrieves user account streams from the API."""
|
||||
endpoint = f"getUserAccounts/streams?_t={int(time.time())}"
|
||||
response = _make_api_request("GET", base_url, auth, endpoint)
|
||||
response = _make_api_request("GET", base_url, auth, "getUserAccounts/streams")
|
||||
return response.json() if response else []
|
||||
|
||||
|
||||
def get_user_accounts(base_url: str, auth: str) -> List[Dict[str, Any]]:
|
||||
"""Retrieves user accounts from the API."""
|
||||
# Add cache-busting parameter to ensure fresh data
|
||||
endpoint = f"getUserAccounts?_t={int(time.time())}"
|
||||
response = _make_api_request("GET", base_url, auth, endpoint)
|
||||
response = _make_api_request("GET", base_url, auth, "getUserAccounts")
|
||||
if not response:
|
||||
return []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user