Skip to content

Commit

Permalink
Fix SrcAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Aug 19, 2023
1 parent 82e25d0 commit 33d248b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gramps_webapi/api/resources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,10 +970,8 @@ def _get_class_name(super_name, key_name) -> str:
return "PlaceName"
if key_name in ["primary_name", "alternate_names"]:
return "Name"
if (
key_name == "attribute_list"
and super_name == "Citation"
or super_name == "Source"
if key_name == "attribute_list" and (
super_name == "Citation" or super_name == "Source"
):
return "SrcAttribute"
elif key_name == "attribute_list":
Expand Down

0 comments on commit 33d248b

Please sign in to comment.