1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-11 21:29:25 +01:00

Implement obs_api.Status.data property that returns status data as a dictionary

This commit is contained in:
Daniel Mach 2024-08-01 13:33:40 +02:00
parent 8d94f068c0
commit 0d28997595

View File

@ -40,3 +40,12 @@ class Status(XmlModel):
"""
),
)
@property
def data(self):
result = {}
for entry in self.data_list or []:
key = entry.name
value = entry.value
result[key] = value
return result