We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b77b3e commit f4e92efCopy full SHA for f4e92ef
tasks.py
@@ -18,7 +18,7 @@ def update_gdoc(
18
base_dir = pathlib.Path("./src/server/endpoints/covidcast_utils/")
19
20
def _migrate_file(url: str, filename: str):
21
- r = requests.get(url).text.replace("\r\n", "\n")
+ r = requests.get(url).content.decode("utf8").replace("\r\n", "\n")
22
rows = r.split("\n")
23
rows = [r for r in rows if not r.startswith(",")]
24
file_ = base_dir / filename
0 commit comments