Skip to content

Commit 936bc12

Browse files
authored
Use locale for media object profile (#249)
1 parent 329a5ca commit 936bc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gramps_webapi/api/resources/media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def object_extend(
5757
"""Extend media attributes as needed."""
5858
if "profile" in args:
5959
obj.profile = get_media_profile_for_object(
60-
self.db_handle, obj, args["profile"]
60+
self.db_handle, obj, args["profile"], locale=locale
6161
)
6262
if "extend" in args:
6363
obj.extended = get_extended_attributes(self.db_handle, obj, args)

0 commit comments

Comments
 (0)