From a07ff265785ca4ca8f47469a263b789290ff9c1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 9 Aug 2023 01:33:16 +0200 Subject: [PATCH] Continued: - renamed report.txt to report.log --- .gitignore | 2 +- fba/helpers/tidyup.py | 3 +++ report.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 327f96a..7400941 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ __pycache__/ config.json *.cover *.pyc -report.txt +report.log *.log diff --git a/fba/helpers/tidyup.py b/fba/helpers/tidyup.py index 3f6fa35..d342a81 100644 --- a/fba/helpers/tidyup.py +++ b/fba/helpers/tidyup.py @@ -67,5 +67,8 @@ def domain(string: str) -> str: elif string.find("/tag/"): string = string.split("/tag/")[0] + if string.endswith("silence"): + string = string.split("silence")[0] + logger.debug("string='%s' - EXIT!", string) return string diff --git a/report.sh b/report.sh index a0647d8..960028d 100755 --- a/report.sh +++ b/report.sh @@ -1,3 +1,3 @@ #!/bin/sh -pylint --verbose --rcfile=pylint.rc fba *.py > report.txt +pylint --verbose --rcfile=pylint.rc fba *.py > report.log -- 2.39.5