(versions)
return sorted(list(set(versions)))
Returns a list of all versions found in the database,
    plus those in the optional list parameter.
Returns a list of all versions found in the database,
    plus those in the optional list parameter.
Returns a list of all versions found in the database plus those in the optional list parameter .
def get_all_versions(versions):
    """
    Returns a list of all versions found in the database,
    plus those in the optional list parameter.
    """
    db = CommCareBuild.get_db()
    results = db.view('builds/all', group_level=1).all()
    versions += [result['key'][0] for result in results]
    return sorted(list(set(versions)))
def get_all_versions ( versions ) : db = CommCareBuild . get_db ( ) results = db . view ( 'builds/all' , group_level = 1 ) . all ( ) versions += [ result [ 'key' ] [ 0 ] for result in results ] return sorted ( list ( set ( versions ) ) )