fix: Remove duplicate json import causing runtime error
- Removed local 'import json' statement inside get_servers() function - This was shadowing the module-level import and causing 'cannot access local variable' error - json is already imported at the top of the file (line 44)
This commit is contained in:
@@ -1326,10 +1326,6 @@ def get_servers():
|
|||||||
|
|
||||||
logger.debug(f"Returning {len(servers)} servers")
|
logger.debug(f"Returning {len(servers)} servers")
|
||||||
|
|
||||||
# Debug: Show exact JSON being sent
|
|
||||||
import json
|
|
||||||
response_data = {"servers": servers}
|
|
||||||
|
|
||||||
return {"servers": servers}
|
return {"servers": servers}
|
||||||
|
|
||||||
@app.post("/servers")
|
@app.post("/servers")
|
||||||
|
|||||||
Reference in New Issue
Block a user