From 135420d4887ea28fee8576f564a5a8b256fb1db6 Mon Sep 17 00:00:00 2001 From: Boyan <36108495+confestim@users.noreply.github.com> Date: Sun, 17 Nov 2024 19:36:28 +0100 Subject: [PATCH] Naming fix All methods are prefixed with get_ --- temmies/submission.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/temmies/submission.py b/temmies/submission.py index 14f9105..48b559d 100644 --- a/temmies/submission.py +++ b/temmies/submission.py @@ -27,7 +27,7 @@ class Submission: return clean return clean.replace(" ", "_").replace(":", "").lower() - def test_cases(self) -> dict[str, str]: + def get_test_cases(self) -> dict[str, str]: """Get a dict of test cases status""" # In the submission page, the test cases are in a div with class "sub-cases subsec round shade" # print(self.__raw.prettify()) @@ -52,7 +52,7 @@ class Submission: return results - def info(self) -> dict[str, str] | None: + def get_info(self) -> dict[str, str] | None: """Submission information (in details)""" # in div with class subsec round shade where there is an h4 with class info # The info is in a div with class "cfg-container" @@ -76,7 +76,7 @@ class Submission: } return None - def files(self) -> list[str] | None: + def get_files(self) -> list[str] | None: """Get a list of uploaded files in the format [(name, url)]""" if not self.__info: self.__info = self.info()