Explanation & Example, Bugfix in Extract

This commit is contained in:
2025-06-09 15:28:03 +02:00
parent a469746af1
commit b1db9e695c
4 changed files with 59 additions and 7 deletions

View File

@ -21,11 +21,8 @@ class CalculatorExtractVariables(ExtractTextAgent):
variable, value = match.group(1), int(match.group(2))
data.file_extracted = self.store_extracted(data, ExtractedData(
contents=[
ExtractedContent(type="variable", content=variable),
ExtractedContent(type="value", content=value)
]
))
other={"variable" : variable, "value" : value}
))
return data