diff --git a/.gitignore b/.gitignore index ac51e6e..85a4b9b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ docker-compose.y*ml .coverage *.egg-info +.idea/ dist build docs/_build diff --git a/pharus/interface.py b/pharus/interface.py index 4aab8d8..8dd810e 100644 --- a/pharus/interface.py +++ b/pharus/interface.py @@ -517,7 +517,7 @@ def _filter_to_restriction(attribute_filter: dict, attribute_type: str) -> str: operation = " IS " if attribute_filter["operation"] == "=" else " IS NOT " else: operation = attribute_filter["operation"] - + if ( re.match(r"^datetime.*$", attribute_type) or re.match(r"timestamp", attribute_type) diff --git a/setup.py b/setup.py index a53c1ea..8ac53b9 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,13 @@ with open(path.join(here, "requirements.txt")) as f: requirements = [ - "{pkg} @ {target}#egg={pkg}".format( - pkg=re.search(r"/([A-Za-z0-9\-]+)\.git", r).group(1), target=r + ( + "{pkg} @ {target}#egg={pkg}".format( + pkg=re.search(r"/([A-Za-z0-9\-]+)\.git", r).group(1), target=r + ) + if "+" in r + else r ) - if "+" in r - else r for r in f.read().splitlines() if "#" not in r ]