mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
删除无用代码
This commit is contained in:
parent
7700df83e3
commit
cc138542b4
@ -1,3 +0,0 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
@ -1,3 +0,0 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
@ -1,23 +0,0 @@
|
||||
# coding=utf-8
|
||||
from django.shortcuts import render
|
||||
from django.http import HttpResponse
|
||||
|
||||
from account.models import User
|
||||
from group.models import Group, UserGroupRelation, JoinGroupRequest
|
||||
|
||||
|
||||
def install(request):
|
||||
for i in range(10):
|
||||
user = User.objects.create(username="root" + str(i), admin_type=2, real_name="real_name", email="11111@qq.com")
|
||||
user.set_password("root")
|
||||
user.save()
|
||||
for i in range(10):
|
||||
group = Group.objects.create(name="group" + str(i),
|
||||
description="description",
|
||||
admin=User.objects.get(username="root0"))
|
||||
for i in range(7):
|
||||
UserGroupRelation.objects.create(user=User.objects.get(username="root" + str(i)), group=group)
|
||||
for i in range(7, 10):
|
||||
JoinGroupRequest.objects.create(user=User.objects.get(username="root" + str(i)),
|
||||
group=group, message=u"你好啊")
|
||||
return HttpResponse("success")
|
@ -1,3 +0,0 @@
|
||||
/usr/bin/docker run -t -i --privileged -v /var/test_case/:/var/judger/test_case/ -v /var/code/:/var/judger/code/ judger /bin/bash
|
||||
|
||||
python judge/judger/run.py -solution_id 1 -max_cpu_time 1 -max_memory 1 -test_case_id 1
|
Loading…
Reference in New Issue
Block a user