Skip to content

Commit

Permalink
Merge pull request #84 from c3g/fix-disease-search
Browse files Browse the repository at this point in the history
Fix inheriting database properties in phenopacket diseases
  • Loading branch information
davidlougheed committed Feb 26, 2020
2 parents 23ea08e + 83245b1 commit a550d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chord_metadata_service/phenopackets/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,9 @@ def _tag_with_database_attrs(schema: dict, db_attrs: dict):
"items": {
**PHENOPACKET_DISEASE_SCHEMA,
"search": {
**PHENOPACKET_DISEASE_SCHEMA.get("search", {}),
**PHENOPACKET_DISEASE_SCHEMA["search"],
"database": {
**PHENOPACKET_DISEASE_SCHEMA.get("database", {}),
**PHENOPACKET_DISEASE_SCHEMA["search"]["database"],
"relationship": {
"type": "MANY_TO_ONE",
"foreign_key": "disease_id" # TODO: No hard-code, from M2M
Expand Down

0 comments on commit a550d10

Please sign in to comment.