def rse_exists(rse, session=None):
"""
Checks to see if RSE exists. This procedure does not check its status.
:param rse: Name of the rse.
:param session: The database session in use.
:returns: True if found, otherwise false.
"""
return True if session.query(models.RSE).filter_by(rse=rse).first() else False
评论列表
文章目录