hcornet 506716e703
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 29s
first sync
2025-03-04 07:59:21 +01:00

14 lines
361 B
Python

from app.models import Comments
def get_case_comment(comment_id, caseid):
if caseid is None:
return Comments.query.filter(
Comments.comment_id == comment_id
).first()
else:
return Comments.query.filter(
Comments.comment_id == comment_id,
Comments.comment_case_id == caseid
).first()