refactor: improve report field names
This commit is contained in:
parent
9d55abfebe
commit
87608ccdb9
3 changed files with 49 additions and 22 deletions
|
@ -169,6 +169,10 @@ def _generate_interval(interval: str, domain: Optional[str] = None) -> None:
|
|||
}
|
||||
if "icon" in definition:
|
||||
entry["icon"] = definition["icon"]
|
||||
if "bucket" in definition:
|
||||
entry["bucket"] = definition["bucket"]
|
||||
if "bucket_label" in definition:
|
||||
entry["bucket_label"] = definition["bucket_label"]
|
||||
if "color" in definition:
|
||||
entry["color"] = definition["color"]
|
||||
if "colors" in definition:
|
||||
|
@ -253,6 +257,10 @@ def _generate_global() -> None:
|
|||
}
|
||||
if "icon" in definition:
|
||||
entry["icon"] = definition["icon"]
|
||||
if "bucket" in definition:
|
||||
entry["bucket"] = definition["bucket"]
|
||||
if "bucket_label" in definition:
|
||||
entry["bucket_label"] = definition["bucket_label"]
|
||||
if "color" in definition:
|
||||
entry["color"] = definition["color"]
|
||||
if "colors" in definition:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue