modified: slop_with_models.py
This commit is contained in:
parent
7a4ddd8688
commit
33da167c93
1 changed files with 4 additions and 0 deletions
|
|
@ -770,6 +770,10 @@ def list_resources():
|
||||||
def get_resource(resource_id):
|
def get_resource(resource_id):
|
||||||
logger.info(f"Received /resources/{resource_id} GET request")
|
logger.info(f"Received /resources/{resource_id} GET request")
|
||||||
with resource_lock:
|
with resource_lock:
|
||||||
|
# Reload resources to ensure we have the latest state
|
||||||
|
global resources
|
||||||
|
resources = load_resources_from_file()
|
||||||
|
logger.debug(f"Resources after reload: {list(resources.keys())}")
|
||||||
if resource_id in resources:
|
if resource_id in resources:
|
||||||
resource = resources[resource_id]
|
resource = resources[resource_id]
|
||||||
logger.debug(f"Exact match found for {resource_id}: {resource}")
|
logger.debug(f"Exact match found for {resource_id}: {resource}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue