mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Need to strip csv values.
This commit is contained in:
parent
ac1c5ca636
commit
2dfc4d6930
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ def format_state_data(label, data):
|
||||||
formatted_data = {}
|
formatted_data = {}
|
||||||
for k, v in data.items():
|
for k, v in data.items():
|
||||||
if v:
|
if v:
|
||||||
formatted_data[k] = f'{label}{{servername="{k}"}} {STATUS_MAPPING[v]}'
|
formatted_data[k] = f'{label}{{servername="{k}"}} {STATUS_MAPPING[v.strip()]}'
|
||||||
return formatted_data
|
return formatted_data
|
||||||
|
|
||||||
def get_state():
|
def get_state():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue