Skip to content

Commit a39a7e9

Browse files
authored
Merge pull request #135 from cmu-delphi/cache-metadata-client
Make metadata requests use the cached endpoint automatically
2 parents d01bd8e + 8357b3d commit a39a7e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/client/delphi_epidata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ Epidata <- (function() {
524524

525525
# Fetch Delphi's COVID-19 Surveillance Streams metadata
526526
covidcast_meta <- function() {
527-
return(.request(list(source='covidcast_meta')))
527+
return(.request(list(source='covidcast_meta', cached='true')))
528528
}
529529

530530
# Export the public methods

src/client/delphi_epidata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,4 +563,4 @@ def covidcast(data_source, signal, time_type, geo_type, time_values, geo_value):
563563
@staticmethod
564564
def covidcast_meta():
565565
"""Fetch Delphi's COVID-19 Surveillance Streams metadata"""
566-
return Epidata._request({'source': 'covidcast_meta'})
566+
return Epidata._request({'source': 'covidcast_meta', 'cached': 'true'})

src/client/packaging/pypi/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name='delphi_epidata',
8-
version='0.0.5',
8+
version='0.0.6',
99
author='David Farrow',
1010
author_email='[email protected]',
1111
description='A programmatic interface to Delphi\'s Epidata API.',

0 commit comments

Comments
 (0)