Skip to content

Commit

Permalink
Fix: Remove superfluous output from check-gmp
Browse files Browse the repository at this point in the history
Some superfluos print statements are removed from check-gmp.gmp.py
that were presumably added for in-development testing and accidentally
left in.
  • Loading branch information
timopollmeier authored and bjoernricks committed Sep 27, 2023
1 parent 377d28e commit afc6f2c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scripts/check-gmp.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,13 @@ def is_old_report(self, last_scan_end, params_used):
(self.host,),
)
db_entry = self.cursor.fetchone()
print(db_entry)

logger.debug("%s %s", db_entry, last_scan_end)

if not db_entry:
return True
else:
print(db_entry[0])
old = parse_date(db_entry[0])
print(last_scan_end)
new = parse_date(last_scan_end)

logger.debug(
Expand Down Expand Up @@ -1142,8 +1139,6 @@ def parse_date(datestring, default_timezone=UTC):
if not isinstance(datestring, str):
raise ParseError(f"Expecting a string {datestring}")

print(datestring)

match = ISO8601_REGEX.match(datestring)
if not match:
raise ParseError(f"Unable to parse date string {datestring}")
Expand Down

0 comments on commit afc6f2c

Please sign in to comment.