pgcontents/query.py
def _get_file(db, user_id, api_path, query_fields, decrypt_func):
    """
    Get file data for the given user_id, path, and query_fields.  The
    query_fields parameter specifies which database fields should be
    included in the returned file data.
    """
    result = db.execute(
        _select_file(user_id, api_path, query_fields, limit=1),
    ).first()

    if result is None:
        raise NoSuchFile(api_path)

    if files.c.content in query_fields:
        return to_dict_with_content(query_fields, result, decrypt_func)
    else:
        return to_dict_no_content(query_fields, result)
def _get_file(db, user_id, api_path, query_fields, decrypt_func):
    """
    Get file data for the given user_id, path, and query_fields.  The
    query_fields parameter specifies which database fields should be
    included in the returned file data.
    """
    result = db.execute(
        _select_file(user_id, api_path, query_fields, limit=1),
    ).first()

    if result is None:
        raise NoSuchFile(api_path)

    if files.c.content in query_fields:
        return to_dict_with_content(query_fields, result, decrypt_func)
    else:
        return to_dict_no_content(query_fields, result)
def _get_file ( db , user_id , api_path , query_fields , decrypt_func ) : result = db . execute ( _select_file ( user_id , api_path , query_fields , limit = 1 ) , ) . first ( ) if result is None : raise NoSuchFile ( api_path ) if files . c . content in query_fields : return to_dict_with_content ( query_fields , result , decrypt_func ) else : return to_dict_no_content ( query_fields , result )
Get file data for the given user_id, path, and query_fields.  The
    query_fields parameter specifies which database fields should be
    included in the returned file data.
Get file data for the given user_id path and query_fields . The query_fields parameter specifies which database fields should be included in the returned file data .