Skip to content

Commit

Permalink
fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Feb 26, 2025
1 parent a163b16 commit cf99bab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PyFunceble/dataset/sql_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ def add(self, row) -> "SQLDBDatasetBase":
y2k38_limit = datetime(2035, 12, 31, 0, 0, tzinfo=timezone.utc)
new_date = datetime.fromtimestamp(float(row["epoch"]), timezone.utc)

if new_date >= y2k38_limit:
new_date = y2k38_limit
new_date = min(new_date, y2k38_limit)

row["epoch"] = new_date.timestamp()
row["expiration_date"] = new_date.strftime("%d-%b-%Y")
Expand Down

0 comments on commit cf99bab

Please sign in to comment.