merge_machine/api.py
def remove_projects(project_type):
    '''Remove multiple projects based on various filters.
    
    GET:
        - project_type
        
    POST:
        - module_params:
            project_access: str (either "all", "public", or "private")
                Whether to list all projects or only those that are public or 
                non-public (private)
            action: str (either "created" or "last_used")
                When using temporal filters, whether to use as variable the 
                creation date or the date of last use.
            when: str (either "before" or "after")
                Whether to select the elements before or after the cutoff date
                (both are inclusive, but proba of equality is very slim).
            hours_from_now: int
                How many hours before current time are we looking at.
    '''
    _, module_params = _parse_request()
    
    admin = Admin()
    res = admin.remove_project_by_time(project_type,
                             project_access=module_params['project_access'],
                             action=module_params['action'], 
                             when=module_params['when'], 
                             hours_from_now=module_params['hours_from_now'])
    return jsonify(*res)
Remove multiple projects based on various filters.
    
    GET:
        - project_type
        
    POST:
        - module_params:
            project_access: str (either "all", "public", or "private")
                Whether to list all projects or only those that are public or 
                non-public (private)
            action: str (either "created" or "last_used")
                When using temporal filters, whether to use as variable the 
                creation date or the date of last use.
            when: str (either "before" or "after")
                Whether to select the elements before or after the cutoff date
                (both are inclusive, but proba of equality is very slim).
            hours_from_now: int
                How many hours before current time are we looking at.
    
Remove multiple projects based on various filters.


Remove multiple projects based on various filters .
def remove_projects(project_type):
    _, module_params = _parse_request()
    admin = Admin()
    res = admin.remove_project_by_time(project_type,
                             project_access=module_params['project_access'],
                             action=module_params['action'], 
                             when=module_params['when'], 
                             hours_from_now=module_params['hours_from_now'])
    return jsonify(*res)
def remove_projects ( project_type ) : _ , module_params = _parse_request ( ) admin = Admin ( ) res = admin . remove_project_by_time ( project_type , project_access = module_params [ 'project_access' ] , action = module_params [ 'action' ] , when = module_params [ 'when' ] , hours_from_now = module_params [ 'hours_from_now' ] ) return jsonify ( * res )
Remove multiple projects based on various filters.
Remove multiple projects based on various filters .
'''Remove multiple projects based on various filters.
    
    GET:
        - project_type
        
    POST:
        - module_params:
            project_access: str (either "all", "public", or "private")
                Whether to list all projects or only those that are public or 
                non-public (private)
            action: str (either "created" or "last_used")
                When using temporal filters, whether to use as variable the 
                creation date or the date of last use.
            when: str (either "before" or "after")
                Whether to select the elements before or after the cutoff date
                (both are inclusive, but proba of equality is very slim).
            hours_from_now: int
                How many hours before current time are we looking at.
    '''
project_type