Compare commits

...

2 Commits
1.4.18 ... main

Author SHA1 Message Date
780b7f9287 Bump version: 1.4.18 → 1.4.19
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m10s
2025-09-05 14:33:19 +01:00
6750ee98e9 try fix cache issue 2025-09-05 14:31:37 +01:00
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.4.18"
current_version = "1.4.19"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.4.18
1.4.19

View File

@ -2,6 +2,7 @@ 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()
@ -40,13 +41,16 @@ def _make_api_request(
def get_urls(base_url: str, auth: str) -> List[Dict[str, Any]]:
"""Retrieves user account streams from the API."""
response = _make_api_request("GET", base_url, auth, "getUserAccounts/streams")
endpoint = f"getUserAccounts/streams?_t={int(time.time())}"
response = _make_api_request("GET", base_url, auth, endpoint)
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."""
response = _make_api_request("GET", base_url, auth, "getUserAccounts")
# Add cache-busting parameter to ensure fresh data
endpoint = f"getUserAccounts?_t={int(time.time())}"
response = _make_api_request("GET", base_url, auth, endpoint)
if not response:
return []