From 4216d153fdb6243655e80ae2660056c78f46ee0b Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 16 Apr 2025 16:08:11 +0200 Subject: [PATCH] feat: removed redundand methods --- stsg/build.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/stsg/build.py b/stsg/build.py index 31f5181..dd7611e 100644 --- a/stsg/build.py +++ b/stsg/build.py @@ -249,32 +249,6 @@ class Article: for ac in self.child_articles: ac.build() - def _get_values(self, return_foreign_articles: bool = True) -> Dict[str, str]: - r = { - "article_overview_url": self.url, - "article_translation_cards": self.translation_cards, - "article_children_cards": self.article_cards, - } - - if return_foreign_articles: - r.update(ARTICLE_REFERENCE_VALUES[""]) - - return r - - - def get_article_values(self) -> Dict[str, str]: - res = {} - for key, value in self._get_values(return_foreign_articles=False).items(): - res[key + ":" + self.slug] = value - return res - - def get_overview(self) -> str: - global TEMPLATE - return replace_values(TEMPLATE.overview, self._get_values()) - - def get_article_card(self) -> str: - return replace_values(TEMPLATE.article_card, self._get_values()) - # GLOBALS logger = logging.getLogger("stsg.build")