The file get_data_helper.py contains functions that query the DB for registries that were previously stored. It should not have any function that updates or inserts registers any sort of information.
CodeClimate has found the following issue:
Similar blocks of code found in 2 locations. Consider refactoring.
Source: https://codeclimate.com/github/qAIRa/qAIRaMapAPI-OpenSource/project/main/data/get_data_helper.py/source#issue-568689b09d9a439d15e084d620c76542
def queryDBProcessedByPollutantMobile(qhawax_name, initial_timestamp, final_timestamp,pollutant) and
def queryDBValidProcessedByPollutantMobile(qhawax_name, initial_timestamp, final_timestamp,pollutant)
The file get_data_helper.py contains functions that query the DB for registries that were previously stored. It should not have any function that updates or inserts registers any sort of information.
CodeClimate has found the following issue:
Similar blocks of code found in 2 locations. Consider refactoring.
Source: https://codeclimate.com/github/qAIRa/qAIRaMapAPI-OpenSource/project/main/data/get_data_helper.py/source#issue-568689b09d9a439d15e084d620c76542
def queryDBProcessedByPollutantMobile(qhawax_name, initial_timestamp, final_timestamp,pollutant)anddef queryDBValidProcessedByPollutantMobile(qhawax_name, initial_timestamp, final_timestamp,pollutant)