添加评论机器人与教师端脚本发布。

This commit is contained in:
2024-06-08 15:32:57 +08:00
parent 1c9972c389
commit c98a5ffeba
7 changed files with 98 additions and 24 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ import json
import time
from django.shortcuts import render
from server.models import Task,StudentandTercher,Comment,Liuyan,CooperationMind
from server.models import Task,StudentandTercher,Comment,Liuyan,CooperationMind,Jiaoben
from server_auth.models import MindUser
def front_comment(type):
@@ -30,7 +30,8 @@ def to_dashboard(request):
"""
主界面
"""
param = {"page": "b9b101e"}
jiaoben = Jiaoben.objects.order_by('id').last().jiaoben
param = {"page": "b9b101e","jiaoben": jiaoben}
return render(request, "html/dashboard.html", param)
def to_baiban(request):