mflbackend/src/helpers.py
def read_restriction(lexconf):
    """ Check whether restrict_to_baseform is true,
        either from the parameters or the config """
    restrict = request.args.get('restrict_to_baseform')
    if restrict is None:
        return lexconf['restrict_to_baseform']
    return restrict in ['True', 'true', True]
 Check whether restrict_to_baseform is true,
        either from the parameters or the config 
Check whether restrict_to_baseform is true,
either from the parameters or the config
Check whether restrict_to_baseform is true either from the parameters or the config
def read_restriction(lexconf):
    restrict = request.args.get('restrict_to_baseform')
    if restrict is None:
        return lexconf['restrict_to_baseform']
    return restrict in ['True', 'true', True]
def read_restriction ( lexconf ) : restrict = request . args . get ( 'restrict_to_baseform' ) if restrict is None : return lexconf [ 'restrict_to_baseform' ] return restrict in [ 'True' , 'true' , True ]
Check whether restrict_to_baseform is true,
either from the parameters or the config
Check whether restrict_to_baseform is true either from the parameters or the config
""" Check whether restrict_to_baseform is true,
        either from the parameters or the config """
lexconf