def merge_filters(filters1, filters2):
 result = list(filters1[:])
 if filters2:
  for f in filters2:
   if (not (f in result)):
    result.append(f)
 return result

def merge_filters ( filters1 , filters2 ) : result = list ( filters1 [ : ] ) if filters2 : for f in filters2 : if ( not ( f in result ) ) : result . append ( f ) return result
merge two filter lists into one .