specially handle as_of
==$TODAY
#1161
Labels
api change
affect the API and its responses
blocked
Work cannot proceed until conditions are met
enhancement
We have seen many entries in our logs of people requesting covidcast data "
as_of
" the current date. Presumably they think that this ensures that they get the most recent information available -- which it does, but it comes at a cost becauseas_of
queries are more complicated (and thus are more computationally expensive and take longer to return). Such users could get the exact same results by omitting theas_of
altogether.To save the user some waiting time and to save us some CPU cycles, we can catch the case when the
as_of
argument is set to "today", and treat it as though the argument was not included at all.The text was updated successfully, but these errors were encountered: