Corrected one more float bug

This commit is contained in:
jeancf 2023-06-28 17:57:15 +02:00
parent 93f8e493db
commit f1b7247b3d

View File

@ -893,7 +893,7 @@ def main(argv):
timestamp = datetime.strptime(time_string, '%b %d, %Y · %I:%M %p %Z') timestamp = datetime.strptime(time_string, '%b %d, %Y · %I:%M %p %Z')
# Check if time is within acceptable range # Check if time is within acceptable range
if not is_time_valid(timestamp): if not is_time_valid(timestamp.timestamp()):
out_date_cnt += 1 out_date_cnt += 1
logging.debug("Tweet outside valid time range, skipping") logging.debug("Tweet outside valid time range, skipping")
continue continue