diff --git a/routes/county_muni_timeseries.js b/routes/county_muni_timeseries.js index 94ce0be..1903290 100644 --- a/routes/county_muni_timeseries.js +++ b/routes/county_muni_timeseries.js @@ -59,7 +59,7 @@ module.exports = function(app, pg, conString) { if (!req.query.year) { res.send('please specify a year (or comma separated list of years)'); } else { - yeardomain = ["1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022"]; + yeardomain = ["1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]; //create array of years year = (req.query.year).split(","); //validate year input