Skip to content

Commit 734527f

Browse files
authored
Fix fields in memory and glossary matches
1 parent a11b019 commit 734527f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/lara_sdk/_translator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ class NGMemoryMatch(LaraObject):
8989
def __init__(self, **kwargs):
9090
self.memory: str = kwargs.get('memory')
9191
self.tuid: Optional[str] = kwargs.get('tuid') if kwargs.get('tuid') else None
92-
self.source: str = kwargs.get('source')
93-
self.target: str = kwargs.get('target')
92+
self.language: List[str] = kwargs.get('language')
9493
self.sentence: str = kwargs.get('sentence')
9594
self.translation: float = kwargs.get('translation')
9695

9796
class NGGlossaryMatch(LaraObject):
9897
def __init__(self, **kwargs):
99-
self.memory: str = kwargs.get('memory')
98+
self.glossary: str = kwargs.get('glossary')
10099
self.language: List[str] = kwargs.get('language')
101100
self.term: str = kwargs.get('term')
102101
self.translation: str = kwargs.get('translation')

0 commit comments

Comments
 (0)