diff --git a/Sprint/settings.py b/Sprint/settings.py index 0ddb1e0..0683640 100644 --- a/Sprint/settings.py +++ b/Sprint/settings.py @@ -17,7 +17,7 @@ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -HOST = os.getenv("HOST", "0.0.0.0") +HOST = os.getenv("HOST", "77.246.159.65") # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ diff --git a/SprintLib/language.py b/SprintLib/language.py index 63d7e27..2e61617 100644 --- a/SprintLib/language.py +++ b/SprintLib/language.py @@ -34,4 +34,13 @@ languages = [ image="zenika/kotlin", highlight="kotlin", ), + Language( + id=2, + name="C++", + work_name="Cpp", + file_type="cpp", + logo_url="https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/ISO_C%2B%2B_Logo.svg/1822px-ISO_C%2B%2B_Logo.svg.png", + image="gcc", + highlight="cpp", + ), ] diff --git a/SprintLib/testers/BaseTester.py b/SprintLib/testers/BaseTester.py index 74691da..e64ffa5 100644 --- a/SprintLib/testers/BaseTester.py +++ b/SprintLib/testers/BaseTester.py @@ -54,6 +54,10 @@ class BaseTester: def __init__(self, solution): self.solution = solution + def set_test(self, num): + self.solution.result = CONSTS["testing_status"] + f"({num})" + self.solution.save() + def execute(self): if not exists("solutions"): mkdir("solutions")