feat: banner docker RBD
This commit is contained in:
+2
-1
@@ -18,6 +18,7 @@ from rest_framework.permissions import IsAuthenticated
|
||||
from rest_framework.response import Response
|
||||
|
||||
from apps.user.models import User, Institution, Department, TeacherStudentRelation
|
||||
from apps.user.views import _build_banner_url
|
||||
from apps.case.models import CaseBase
|
||||
from apps.training.models import TrainingRecord, TrainingSession
|
||||
from apps.user.stats import STANDARD_DIMS, DIMENSION_MAP, _dimension_scores, _NORM_TOTAL_EXPR
|
||||
@@ -282,7 +283,7 @@ def hospital_overview(request):
|
||||
profile = {
|
||||
'institution_id': inst_id,
|
||||
'name': inst.name if inst else '',
|
||||
'logo': inst.banner_url if inst else '',
|
||||
'logo': _build_banner_url(request, inst.banner_url) if inst else '', # 完整 URL(含 STATIC_PUBLIC_PREFIX)
|
||||
'level': inst.level if inst else '',
|
||||
'cooperation_days': (now - inst.created_at).days if inst and inst.created_at else None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user