mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-22 09:41:26 -08:00
linter recommendations
This commit is contained in:
parent
09508ded9d
commit
5af7b44bf7
2 changed files with 3 additions and 2 deletions
|
@ -196,7 +196,7 @@ class PostScoreETL(ExtractTransformLoad):
|
||||||
|
|
||||||
def _save_downloadable_zip(self):
|
def _save_downloadable_zip(self):
|
||||||
logger.info("Saving Downloadable CSV")
|
logger.info("Saving Downloadable CSV")
|
||||||
logger.info([c for c in self.score_county_state_merged.columns])
|
logger.info(list(self.score_county_state_merged.columns))
|
||||||
logger.info(self.DOWNLOADABLE_SCORE_COLUMNS)
|
logger.info(self.DOWNLOADABLE_SCORE_COLUMNS)
|
||||||
downloadable_tiles = self.score_county_state_merged[
|
downloadable_tiles = self.score_county_state_merged[
|
||||||
self.DOWNLOADABLE_SCORE_COLUMNS
|
self.DOWNLOADABLE_SCORE_COLUMNS
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
import zipfile
|
import zipfile
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -124,7 +125,7 @@ def unzip_file_from_url(
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
file_contents = response.content
|
file_contents = response.content
|
||||||
else:
|
else:
|
||||||
exit(
|
sys.exit(
|
||||||
f"HTTP response {response.status_code} from url {file_url}. Info: {response.content}"
|
f"HTTP response {response.status_code} from url {file_url}. Info: {response.content}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue