remove redis rank temp
This commit is contained in:
parent
39ffbe4ec7
commit
577edc0c10
|
@ -206,7 +206,6 @@ class ProjectInfoView(View):
|
|||
class ProjectSourceView(View):
|
||||
|
||||
def login_educoder(self,educoder_userid,request):
|
||||
print("educoder_id"+str(educoder_userid))
|
||||
private_token = "hriEn3UwXfJs3PmyXnSG"
|
||||
userinfo_url = "http://www.educoder.net/api/v1/sources/"+str(educoder_userid)+"/get_user_info?private_token="+private_token
|
||||
response = requests.get(userinfo_url)
|
||||
|
@ -240,13 +239,11 @@ class ProjectSourceView(View):
|
|||
|
||||
def get(self, request, name, path):
|
||||
educoder_userid = request.GET.get("eid","")
|
||||
print(educoder_userid)
|
||||
if educoder_userid!="" and educoder_userid!="2":
|
||||
self.login_educoder(educoder_userid,request)
|
||||
name = name.split("?")[0]
|
||||
path = path.split("?")[0]
|
||||
project = Project.objects.filter(name=name).first()
|
||||
print(project.name)
|
||||
if project.is_open:
|
||||
return render(request, 'projects/source.html', locals())
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue