apply languages

This commit is contained in:
Egor Matveev 2022-02-17 13:59:12 +03:00
parent 0b3044350b
commit cdcdff6651
3 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,7 @@ from Main.models import Solution, Set
def generate_token():
letters = '1234567890qwertyuiopasdfghjklzxcvbnm!@#$%^&*()QWERTYUIOPASDFGHJKLZXCVBNM'
letters = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
return ''.join([choice(letters) for _ in range(30)])

View File

@ -10,6 +10,10 @@ ENV PYTHONUNBUFFERED 1
RUN mkdir -p /usr/src/app/
WORKDIR /usr/src/app/
RUN pip install requests
COPY . /usr/src/app/
CMD ["python", "main.py"]
docker run --name runner --volume=/var/run/docker.sock:/var/run/docker.sock --privileged -e TOKEN=1DGan0xqx51N^wN@i7aqcF@npzrZJr runner

View File

@ -1,5 +1,5 @@
from multiprocessing import Process
from os import getenv, environ
from os import getenv
from os.path import join
from tempfile import TemporaryDirectory
from time import sleep