From 6630793a75e0d83cae0269ad6a6ae81dce9d9647 Mon Sep 17 00:00:00 2001 From: Henrik Holm Date: Sun, 6 Oct 2024 00:06:37 +0200 Subject: [PATCH] Format using `ruff` rules specified in `pyproject.toml` --- recipes/fokus.recipe | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/fokus.recipe b/recipes/fokus.recipe index bfe187da99..b484e6aace 100644 --- a/recipes/fokus.recipe +++ b/recipes/fokus.recipe @@ -120,13 +120,11 @@ class Fokus(BasicNewsRecipe): if time_tag := a_tag.find('time', {'class': 'Blurb__date'}): swedish_date_str = self.tag_to_string(time_tag) datetime_str = time_tag['datetime'] - datetime_time = datetime.strptime( - datetime_str, '%Y-%m-%dT%H:%M:%S%z') + datetime_time = datetime.strptime(datetime_str, '%Y-%m-%dT%H:%M:%S%z') now = datetime.now(timezone.utc) delta = now - datetime_time if delta.days > self.max_age: - self.log.debug( - f"\tSkipping article '{title}' as it is too old") + self.log.debug(f"\tSkipping article '{title}' as it is too old") else: if desc_tag := a_tag.find('div', {'class': 'Blurb__summary'}): desc = self.tag_to_string(desc_tag)