diff --git a/CHANGELOG.md b/CHANGELOG.md index 09c54e6e5d49de182e5c171bc47c0adbfca3c707..2c9160a5aee105188873e9a444706d1726de2211 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed ### * [93](https://gitlab.com/linkahead/linkahead-crawler/-/issues/93) cfood.yaml does not allow umlaut in $expression +* [96](https://gitlab.com/linkahead/linkahead-crawler/-/issues/96) Do not fail silently on transaction errors ### Security ### diff --git a/src/caoscrawler/transformer_functions.py b/src/caoscrawler/transformer_functions.py index 26f9de65b946046dacd0933744c2aca3362565ae..ce08bc6bc05caa84f342cdc25f3243c5bab0b79c 100644 --- a/src/caoscrawler/transformer_functions.py +++ b/src/caoscrawler/transformer_functions.py @@ -68,7 +68,7 @@ def replace(in_value: Any, in_parameters: dict): return in_value.replace(in_parameters['remove'], in_parameters['insert']) -def date_parse(in_value: str, params: dict): +def date_parse(in_value: str, params: dict) -> str: """Transform text so that it is formatted in a way that LinkAhead can understand it. Parameters @@ -84,7 +84,7 @@ Parameters return dt_str -def datetime_parse(in_value: str, params: dict): +def datetime_parse(in_value: str, params: dict) -> str: """Transform text so that it is formatted in a way that LinkAhead can understand it.