@@ -2759,3 +2759,62 @@ |
) |
self.save_registry() |
return "Removed assessment from tracking list" |
+ |
+ def start_new_tracking_sheet(self, assessment_cycle_key, year): |
+ # Load registry and add new key to it |
+ newKey = "{0} {1}" |
+ if newKey in self.registry: |
+ return "Failed to add '{0}' tracking sheet to the registry, it already exists.".format(newKey) |
+ template = [] |
+ if assessment_cycle_key in ["Arkansas/Rio Grande", "Statewide"]: # assessed in 2021 |
+ template.append({ "name": "Alamosa River", "basin": "CORGAL", "sites": [] }) |
+ template.append({ "name": "Arkansas River (Upper)", "basin": "COARUA", "sites": [] }) |
+ template.append({ "name": "Arkansas River (Middle)", "basin": "COARMA", "sites": [] }) |
+ template.append({ "name": "Arkansas River (Lower)", "basin": "COARLA", "sites": [] }) |
+ template.append({ "name": "Fountain Creek", "basin": "COARFO", "sites": [] }) |
+ template.append({ "name": "Cimarron River", "basin": "COARCI", "sites": [] }) |
+ template.append({ "name": "Closed Basin (Rio Grande)", "basin": "CORGCB", "sites": [] }) |
+ template.append({ "name": "Rio Grande", "basin": "CORGRG", "sites": [] }) |
+ elif assessment_cycle_key in ["Upper/Lower Colorado", "Statewide"]: # assessed in 2022 |
+ template.append({ "name": "Blue River", "basin": "COUCBL", "sites": [] }) |
+ template.append({ "name": "Colorado River (Upper)", "basin": "COUCUC", "sites": [] }) |
+ template.append({ "name": "Colorado River (Lower)", "basin": "COLCLC", "sites": [] }) |
+ template.append({ "name": "Eagle River", "basin": "COUCEA", "sites": [] }) |
+ template.append({ "name": "North Platte River", "basin": "COUCNP", "sites": [] }) |
+ template.append({ "name": "Roaring Fork River", "basin": "COUCRF", "sites": [] }) |
+ template.append({ "name": "White River", "basin": "COLCWH", "sites": [] }) |
+ template.append({ "name": "Yampa River (Upper)", "basin": "COUCYA", "sites": [] }) |
+ template.append({ "name": "Yampa River (Lower)", "basin": "COLCLY", "sites": [] }) |
+ elif assessment_cycle_key in ["San Juan/Gunnison", "Statewide"]: # assessed in 2020 |
+ template.append({ "name": "Animas River", "basin": "COSJAF", "sites": [] }) |
+ template.append({ "name": "Dolores River (San Juan)", "basin": "COSJDO", "sites": [] }) |
+ template.append({ "name": "Dolores River (Lower Dolores)", "basin": "COGULD", "sites": [] }) |
+ template.append({ "name": "Gunnison River (Lower)", "basin": "COGULG", "sites": [] }) |
+ template.append({ "name": "Gunnison River (North Fork)", "basin": "COGUNF", "sites": [] }) |
+ template.append({ "name": "Gunnison River (Upper)", "basin": "COGUUG", "sites": [] }) |
+ template.append({ "name": "La Plata River", "basin": "COSJLP", "sites": [] }) |
+ template.append({ "name": "Los Pinos River", "basin": "COSJPN", "sites": [] }) |
+ template.append({ "name": "Piedra River", "basin": "COSJPI", "sites": [] }) |
+ template.append({ "name": "San Juan River", "basin": "COSJSJ", "sites": [] }) |
+ template.append({ "name": "San Miguel River", "basin": "COGUSM", "sites": [] }) |
+ template.append({ "name": "Uncompahgre River", "basin": "COGUUN", "sites": [] }) |
+ elif assessment_cycle_key in ["South Platte", "Statewide"]: |
+ template.append({ "name": "Bear Creek", "basin": "COSPBE", "sites": [] }) |
+ template.append({ "name": "Big Dry Creek", "basin": "COSPBD", "sites": [] }) |
+ template.append({ "name": "Big Thompson River", "basin": "COSPBT", "sites": [] }) |
+ template.append({ "name": "Boulder Creek", "basin": "COSPBO", "sites": [] }) |
+ template.append({ "name": "Cache La Poudre River", "basin": "COSPCP", "sites": [] }) |
+ template.append({ "name": "Cherry Creek", "basin": "COSPCH", "sites": [] }) |
+ template.append({ "name": "Clear Creek", "basin": "COSPCL", "sites": [] }) |
+ template.append({ "name": "Laramie River", "basin": "COSPLA", "sites": [] }) |
+ template.append({ "name": "Republican River", "basin": "COSPRE", "sites": [] }) |
+ template.append({ "name": "South Platte River (Upper)", "basin": "COSPUS", "sites": [] }) |
+ template.append({ "name": "South Platte River (Middle)", "basin": "COSPMS", "sites": [] }) |
+ template.append({ "name": "South Platte River (Lower)", "basin": "COSPLS", "sites": [] }) |
+ template.append({ "name": "St. Vrain Creek", "basin": "COSPSV", "sites": [] }) |
+ if not template: |
+ return "Failed to add '{0}' tracking sheet to the registry, it does not match any existing assessment cycle template.".format(newKey) |
+ self.registry[newKey] = template |
+ self.save_registry() |
+ return "Successfully added new '{0}' tracking sheet to the registry".format(newKey) |
+ |