Skip to content

Commit

Permalink
[DONE] remove message waiting for aristote traitment if done (EsupPor…
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitloup authored Jul 19, 2024
1 parent 77f4bee commit fec6af0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion pod/video/templates/videos/video_page_content.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% load i18n %}
{% load video_filters %}
{% load ai_enhancement_template_tags %}

{% if video.is_draft %}
<div class="alert alert-secondary">
Expand Down Expand Up @@ -84,7 +85,8 @@ <h4 class="accordion-header theme_title" id="theme_desc_title">
</div>
{% endif %}
{% endif %}
{% if enr_is_already_asked %}
{% enhancement_is_already_asked video as eiaa %}
{% if eiaa %}
<div class="alert alert-warning" role="alert">
<i class="bi bi-hourglass-split" aria-hidden="true"></i>
{% trans 'The video is currently waiting for Aristote AI treatment.' %}
Expand Down
8 changes: 0 additions & 8 deletions pod/video/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
from django.db.models import QuerySet
from django.db import transaction

from ..ai_enhancement.utils import enhancement_is_already_asked

RESTRICT_EDIT_VIDEO_ACCESS_TO_STAFF_ONLY = getattr(
settings, "RESTRICT_EDIT_VIDEO_ACCESS_TO_STAFF_ONLY", False
)
Expand Down Expand Up @@ -1058,12 +1056,6 @@ def video(request, slug, slug_c=None, slug_t=None, slug_private=None):
template_video = "videos/video.html"
params = {
"active_video_comment": ACTIVE_VIDEO_COMMENT,
"enr_is_already_asked": enhancement_is_already_asked(video)
and (
request.user.is_superuser
or request.user == video.owner
or request.user in video.additional_owners.all()
),
}
if request.GET.get("is_iframe"):
params = {"page_title": video.title}
Expand Down

0 comments on commit fec6af0

Please sign in to comment.