Skip to content

Commit

Permalink
using static method
Browse files Browse the repository at this point in the history
  • Loading branch information
ngken0995 committed Jan 3, 2024
1 parent 082dafa commit 44daa71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_record_data(self, data: dict) -> dict | list[dict] | None:
}

@staticmethod
def _get_meta_data(self, object_json: dict) -> dict | None:
def _get_meta_data(object_json: dict) -> dict | None:
geopos = object_json.get("geopos")[0] if object_json.get("geopos", []) else ""
department = (
object_json.get("department")[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def test_get_record_data():
"foreign_identifier": "691102",
"url": "http://api.aucklandmuseum.com/id/media/v/214749",
"license_info": CC_BY_4_0,
"thumbnail_url": "http://api.aucklandmuseum.com/id/media/v/214749?rendering=thumbnail.jpg",
"creator": "R. O. Gardner",
"title": "Cypholophus macrocephalus mollis (Blume) Wedd. var. mollis (Wedd.) Wedd.",
"meta_data": meta_data,
Expand Down

0 comments on commit 44daa71

Please sign in to comment.