Skip to content

Commit

Permalink
Corrections in Schema and Entity files
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmacalintal committed Dec 9, 2024
1 parent fa27358 commit a402a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dinapy/entities/MetagenomicsBatchItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_type(self):
class MetagenomicsBatchItemDTOBuilder:
def __init__(self):
self._id = None
self._type = 'metagenomics-batch'
self._type = 'metagenomics-batch-item'
self._attributes = None
self._relationships = None

Expand Down
6 changes: 3 additions & 3 deletions dinapy/schemas/metagenomics_batch_item_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .customFields import SkipUndefinedField
from .BaseSchema import *

class MetagenimicsBatchSchema(BaseSchema):
class MetagenomicsBatchSchema(BaseSchema):
class Meta:
type_ = 'metagenomics-batch'

Expand All @@ -28,8 +28,8 @@ class MetagenomicsBatchItemSchema(Schema):
createdBy = SkipUndefinedField(fields.Str, load_only=True, attribute="attributes.createdBy")
createdOn = SkipUndefinedField(fields.Str, load_only=True, attribute="attributes.createdOn")

metagenomicsBatch = create_relationship("metagenomics-batch-item", "metgenomics-batch", "metgenomicsBatch")
pcrBatchItem = create_relationship("metgenomics-batch-item", "pcr-batch-item", "pcrBatchItem")
metagenomicsBatch = create_relationship("metagenomics-batch-item", "metagenomics-batch", "metagenomicsBatch")
pcrBatchItem = create_relationship("metagenomics-batch-item", "pcr-batch-item", "pcrBatchItem")
molecularAnalysisRunItem = create_relationship("metagenomics-batch-item", "molecular-analysis-run-item", "molecularAnalysisRunItem")
indexI5 = create_relationship("metagenomics-batch-item", "ngs-idnex", "indexI5")
indexI7 = create_relationship("metagenomics-batch-item", "ngs-idnex", "indexI7")
Expand Down

0 comments on commit a402a5e

Please sign in to comment.