MCPcopy Create free account
hub / github.com/StarKhan6368/threaddit / doesSubthreadExist

Function doesSubthreadExist

backend/threaddit/posts/models.py:169–171  ·  view source on GitHub ↗
(subthread_id)

Source from the content-addressed store, hash-verified

167
168
169def doesSubthreadExist(subthread_id):
170 if not Subthread.query.filter_by(id=subthread_id).first():
171 raise ValidationError("Subthread does not exist")
172
173
174class PostValidator(ma.SQLAlchemySchema):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected