cpp added
This commit is contained in:
parent
7bc0ad6060
commit
453055e85c
@ -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/
|
||||
|
@ -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",
|
||||
),
|
||||
]
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user