Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init()
- projects_matching = []
- # Find each project that matches the search criteria in the choosen fields
- for project in projects:
- if search_fields:
- for field in search_fields:
- if search in project[field]:
- projects_matching.append(project)
- # Get rid of the projects that doesn't match the given techniques
- for project in projects_matching:
- if techniques:
- for technique in techniques:
- if technique not in project['techniques_used'].lower():
- projects_matching.remove(project)
- # Do sorting...
- return (works_ok, projects_matching)
Add Comment
Please, Sign In to add comment