Skip to content

Commit d39ff99

Browse files
authored
Merge pull request #872 from cmu-delphi/release/delphi-epidata-0.3.14
Release Delphi Epidata 0.3.14
2 parents 7acfec6 + e2fa0e6 commit d39ff99

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.13
2+
current_version = 0.3.14
33
commit = False
44
tag = False
55

src/acquisition/covidcast/database.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,11 @@ def delete_batch(self, cc_deletions):
333333
if isinstance(cc_deletions, str):
334334
self._cursor.execute(load_tmp_table_infile_sql)
335335
elif isinstance(cc_deletions, list):
336-
self._cursor.executemany(load_tmp_table_insert_sql, cc_deletions)
336+
def split_list(lst, n):
337+
for i in range(0, len(lst), n):
338+
yield lst[i:(i+n)]
339+
for deletions_batch in split_list(cc_deletions, 100000):
340+
self._cursor.executemany(load_tmp_table_insert_sql, deletions_batch)
337341
else:
338342
raise Exception(f"Bad deletions argument: need a filename or a list of tuples; got a {type(cc_deletions)}")
339343
self._cursor.execute(add_id_sql)

src/client/delphi_epidata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Epidata <- (function() {
1515
# API base url
1616
BASE_URL <- 'https://delphi.cmu.edu/epidata/api.php'
1717

18-
client_version <- '0.3.13'
18+
client_version <- '0.3.14'
1919

2020
# Helper function to cast values and/or ranges to strings
2121
.listitem <- function(value) {

src/client/delphi_epidata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
})(this, function (exports, fetchImpl, jQuery) {
2424
const BASE_URL = "https://delphi.cmu.edu/epidata/";
25-
const client_version = "0.3.13";
25+
const client_version = "0.3.14";
2626

2727
// Helper function to cast values and/or ranges to strings
2828
function _listitem(value) {

src/client/packaging/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "delphi_epidata",
33
"description": "Delphi Epidata API Client",
44
"authors": "Delphi Group",
5-
"version": "0.3.13",
5+
"version": "0.3.14",
66
"license": "MIT",
77
"homepage": "https://github.com/cmu-delphi/delphi-epidata",
88
"bugs": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .delphi_epidata import Epidata
22

33
name = 'delphi_epidata'
4-
__version__ = '0.3.13'
4+
__version__ = '0.3.14'

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.3.13",
8+
version="0.3.14",
99
author="David Farrow",
1010
author_email="[email protected]",
1111
description="A programmatic interface to Delphi's Epidata API.",

src/server/_config.py

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

66
load_dotenv()
77

8-
VERSION = "0.3.13"
8+
VERSION = "0.3.14"
99

1010
MAX_RESULTS = int(10e6)
1111
MAX_COMPATIBILITY_RESULTS = int(3650)

0 commit comments

Comments
 (0)