mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-23 20:45:33 +03:00
SyntaxError: f-string: unmatched '[' in server list (on the DEVELOP branch only) #3018
This commit is contained in:
parent
318a61da6c
commit
9fe0c812a0
@ -145,7 +145,7 @@ class GlancesServersList:
|
||||
if server['protocol'].lower() == 'rpc':
|
||||
self.__update_stats_rpc(server['uri'], server)
|
||||
elif server['protocol'].lower() == 'rest' and not import_requests_error_tag:
|
||||
self.__update_stats_rest(f'{server['uri']}/api/{__apiversion__}', server)
|
||||
self.__update_stats_rest(f"{server['uri']}/api/{__apiversion__}", server)
|
||||
|
||||
return server
|
||||
|
||||
@ -208,9 +208,9 @@ class GlancesServersList:
|
||||
for column in self.get_columns():
|
||||
server_key = self.__get_key(column)
|
||||
# Build the URI (URL encoded)
|
||||
request_uri = f'{column['plugin']}/{column['field']}'
|
||||
request_uri = f"{column['plugin']}/{column['field']}"
|
||||
if 'key' in column:
|
||||
request_uri += f'/{column['key']}'
|
||||
request_uri += f"/{column['key']}"
|
||||
request_uri = f'{uri}/' + requests.utils.quote(request_uri)
|
||||
# Value
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user