zeeguu/api/api/topics.py
def unsubscribe_from_filter():
    """
    A user can unsubscribe from the filter with a given ID
    :return: OK / ERROR
    """

    filter_id = int(request.form.get("topic_id", ""))

    try:
        to_delete = TopicFilter.with_topic_id(filter_id, flask.g.user)
        session.delete(to_delete)
        session.commit()
    except Exception as e:
        from sentry_sdk import capture_exception

        capture_exception(e)
        return "OOPS. FILTER AIN'T THERE IT SEEMS (" + str(e) + ")"

    return "OK"

    A user can unsubscribe from the filter with a given ID
    :return: OK / ERROR
    
A user can unsubscribe from the filter with a given ID
A user can unsubscribe from the filter with a given ID
def unsubscribe_from_filter():
    filter_id = int(request.form.get("topic_id", ""))
    try:
        to_delete = TopicFilter.with_topic_id(filter_id, flask.g.user)
        session.delete(to_delete)
        session.commit()
    except Exception as e:
        from sentry_sdk import capture_exception
        capture_exception(e)
        return "OOPS. FILTER AIN'T THERE IT SEEMS (" + str(e) + ")"
    return "OK"
def unsubscribe_from_filter ( ) : filter_id = int ( request . form . get ( "topic_id" , "" ) ) try : to_delete = TopicFilter . with_topic_id ( filter_id , flask . g . user ) session . delete ( to_delete ) session . commit ( ) except Exception as e : from sentry_sdk import capture_exception capture_exception ( e ) return "OOPS. FILTER AIN'T THERE IT SEEMS (" + str ( e ) + ")" return "OK"
A user can unsubscribe from the filter with a given ID
A user can unsubscribe from the filter with a given ID
"""
    A user can unsubscribe from the filter with a given ID
    :return: OK / ERROR
    """
OK / ERROR
OK / ERROR