Skip to content

Fix "similar-code" issue in project/main/data/get_data_helper.py #105

Description

@SabCampos

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions