Skip to content

Commit 0b14f7b

Browse files
authored
Fix source media type issue (#242)
1 parent ca0525a commit 0b14f7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gramps_webapi/api/resources/util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,11 @@ def fix_object_dict(object_dict: Dict, class_name: Optional[str] = None):
852852
"_class": f"{class_name}RelType",
853853
"string": xml_to_locale(f"{class_name}RelType", v),
854854
}
855+
elif class_name == "RepoRef":
856+
d_out[k] = {
857+
"_class": "SourceMediaType",
858+
"string": xml_to_locale("SourceMediaType", v),
859+
}
855860
else:
856861
d_out[k] = {
857862
"_class": f"{class_name}Type",

0 commit comments

Comments
 (0)