Skip to content
Snippets Groups Projects
Commit 965fb114 authored by Frank Duncan's avatar Frank Duncan
Browse files

Add Tags as a field for all proposals

parent ab6b0889
No related branches found
No related tags found
No related merge requests found
......@@ -428,6 +428,17 @@ class KeyWords(utils.Filter):
return True
class Tags(utils.Filter):
def name(self):
return "tags"
def document_value(self, document):
return document.get("Tags", []) or []
def is_list(self):
return True
class AnnualOperatingBudget(utils.Filter):
def name(self):
return "annual_operating_budget"
......@@ -562,6 +573,7 @@ TORQUE_FILTERS = [
Locations("future_work_locations", "Future Work Locations"),
Locations("current_work_locations", "Current Work Locations"),
KeyWords(),
Tags(),
AnnualOperatingBudget(),
NumberOfEmployees(),
SustainableDevelopmentGoals(),
......
......@@ -956,6 +956,7 @@ class AirtableColumnsAdder(InformationAdder):
"Priority Populations",
"Future Work Locations",
"Current Work Locations",
"Tags",
]
def __init__(self):
......
......@@ -82,6 +82,7 @@ allowlist = {
"Profile Link URL",
"Is the project still ongoing?",
"BSN Status",
"Tags",
],
"PeerToPeer": [
"Peer ACTIONABLE Judge Data",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment