def get_wanna_help_queue_from_session(session):
 ret = []
 for project_id in session.get(PROJECTS_TO_HELP_OUT_KEY, []):
  try:
   project = mysite.search.models.Project.objects.get(id=project_id)
  except mysite.search.models.Project.DoesNotExist:
   continue
  ret.append(project)
 ret = list(set(ret))
 return ret

def get_wanna_help_queue_from_session ( session ) : ret = [ ] for project_id in session . get ( PROJECTS_TO_HELP_OUT_KEY , [ ] ) : try : project = mysite . search . models . Project . objects . get ( id = project_id ) except mysite . search . models . Project . DoesNotExist : continue ret . append ( project ) ret = list ( set ( ret ) ) return ret
get a list of projects that the user said .