Skip to content

Commit ee2dc47

Browse files
authored
Fix missing descriptor description
The `description` field on Descriptors is optional in Ed-Fi, this fixes a bug in lightbeam when they are missing.
1 parent f1ce846 commit ee2dc47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightbeam/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async def load_descriptors_values(self):
294294
descriptor = ""
295295
for key in v.keys():
296296
if key.endswith("Id"): descriptor = key[0:-2]
297-
self.descriptor_values.append([descriptor, v["namespace"], v["codeValue"], v["shortDescription"], v["description"]])
297+
self.descriptor_values.append([descriptor, v["namespace"], v["codeValue"], v["shortDescription"], v.get("description", "")])
298298

299299
# save
300300
if self.lightbeam.track_state:

0 commit comments

Comments
 (0)