Skip to content

Commit 33d248b

Browse files
committed
Fix SrcAttribute
1 parent 82e25d0 commit 33d248b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gramps_webapi/api/resources/util.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -970,10 +970,8 @@ def _get_class_name(super_name, key_name) -> str:
970970
return "PlaceName"
971971
if key_name in ["primary_name", "alternate_names"]:
972972
return "Name"
973-
if (
974-
key_name == "attribute_list"
975-
and super_name == "Citation"
976-
or super_name == "Source"
973+
if key_name == "attribute_list" and (
974+
super_name == "Citation" or super_name == "Source"
977975
):
978976
return "SrcAttribute"
979977
elif key_name == "attribute_list":

0 commit comments

Comments
 (0)