Skip to content

Commit

Permalink
Use today() as it is already used somewhere else and sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jul 25, 2023
1 parent b005ed2 commit 9e4a610
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ select = [
ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Allow use of datetime with tz and date.today
"DTZ005", "DTZ011",
# Allow use of date.today
"DTZ011",
# Remove flake8-errmsg since we consider they bloat the code and provide limited value
"EM",
# Allow boolean positional values in function calls, like `dict.get(... True)`
Expand Down
2 changes: 1 addition & 1 deletion src/kolibri2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ def sanitize_inputs(self):
channel_meta = self.db.get_channel_metadata(self.channel_id)

# input & metadata sanitation
period = datetime.datetime.now().strftime("%Y-%m")
period = datetime.date.today().strftime("%Y-%m")
if self.fname:
# make sure we were given a filename and not a path
fname_path = Path(str(self.fname).format(period=period))
Expand Down

0 comments on commit 9e4a610

Please sign in to comment.