[WEB-5263] chore: removed the tracking of sanitized HTML (#8023)
* chore: removed the html sanitized tracking * chore: added the greater than sign
This commit is contained in:
parent
044003e7ec
commit
e09d986497
2 changed files with 1 additions and 5 deletions
|
|
@ -1221,7 +1221,7 @@ class TransferCycleIssueAPIEndpoint(BaseAPIView):
|
||||||
pk=cycle_id,
|
pk=cycle_id,
|
||||||
)
|
)
|
||||||
# transfer work items only when cycle is completed (passed the end data)
|
# transfer work items only when cycle is completed (passed the end data)
|
||||||
if old_cycle.end_date is not None and old_cycle.end_date < timezone.now():
|
if old_cycle.end_date is not None and old_cycle.end_date > timezone.now():
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "The old cycle is not completed yet"},
|
{"error": "The old cycle is not completed yet"},
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
|
|
|
||||||
|
|
@ -237,10 +237,6 @@ def validate_html_content(html_content: str):
|
||||||
except Exception:
|
except Exception:
|
||||||
summary = str(diff)
|
summary = str(diff)
|
||||||
logger.warning(f"HTML sanitization removals: {summary}")
|
logger.warning(f"HTML sanitization removals: {summary}")
|
||||||
log_exception(
|
|
||||||
ValueError(f"HTML sanitization removals: {summary}"),
|
|
||||||
warning=True,
|
|
||||||
)
|
|
||||||
return True, None, clean_html
|
return True, None, clean_html
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log_exception(e)
|
log_exception(e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue