Skip to content

Commit e09d986

Browse files
[WEB-5263] chore: removed the tracking of sanitized HTML (#8023)
* chore: removed the html sanitized tracking * chore: added the greater than sign
1 parent 044003e commit e09d986

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

apps/api/plane/api/views/cycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ def post(self, request, slug, project_id, cycle_id):
12211221
pk=cycle_id,
12221222
)
12231223
# transfer work items only when cycle is completed (passed the end data)
1224-
if old_cycle.end_date is not None and old_cycle.end_date < timezone.now():
1224+
if old_cycle.end_date is not None and old_cycle.end_date > timezone.now():
12251225
return Response(
12261226
{"error": "The old cycle is not completed yet"},
12271227
status=status.HTTP_400_BAD_REQUEST,

apps/api/plane/utils/content_validator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ def validate_html_content(html_content: str):
237237
except Exception:
238238
summary = str(diff)
239239
logger.warning(f"HTML sanitization removals: {summary}")
240-
log_exception(
241-
ValueError(f"HTML sanitization removals: {summary}"),
242-
warning=True,
243-
)
244240
return True, None, clean_html
245241
except Exception as e:
246242
log_exception(e)

0 commit comments

Comments
 (0)