Skip to content

Commit

Permalink
Borro variables no usadas
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslavandeira committed Sep 5, 2018
1 parent 74ff2f3 commit 38a030c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions series_tiempo_ar_api/libs/indexing/scraping.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import urllib.parse

import pandas as pd
import requests
from django.conf import settings
from series_tiempo_ar.validations import validate_distribution

from series_tiempo_ar_api.libs.indexing import strings
from .constants import IDENTIFIER, DOWNLOAD_URL, DATASET_IDENTIFIER
from .constants import DOWNLOAD_URL, DATASET_IDENTIFIER

logger = logging.getLogger(__name__)

Expand All @@ -25,7 +23,6 @@ def run(self, distribution, catalog):
Returns:
bool: True si la distribución pasa las validaciones, False caso contrario
"""
distribution_id = distribution.get(IDENTIFIER)
url = distribution.get(DOWNLOAD_URL)
# Fix a pandas fallando en lectura de URLs no ascii
url = url.encode('UTF-8')
Expand Down

0 comments on commit 38a030c

Please sign in to comment.