Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit a639eb8

Browse files
authored
Is this how you access a dictionary in python?
1 parent 55d5ed9 commit a639eb8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

yogsite/modules/api/routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ def page_api_stats():
2121

2222
server_stats.append({
2323
"info": {
24-
"name": server_info.name,
25-
"host": server_info.host,
26-
"port": server_info.port
24+
"name": server_info["name"],
25+
"host": server_info["host"],
26+
"port": server_info["port"]
2727
},
2828
"stats": stats
2929
})

0 commit comments

Comments
 (0)