gfw-api/gfw-analysis-gee

View on GitHub
gfwanalysis/routes/api/v1/biomass_loss_router.py

Summary

Maintainability
A
1 hr
Test Coverage
F
47%

Function get_by_regional has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def get_by_regional(iso, id1, id2, geojson, area_ha):
Severity: Minor
Found in gfwanalysis/routes/api/v1/biomass_loss_router.py - About 35 mins to fix

    Avoid too many return statements within this function.
    Open

            return jsonify(data=serialize_biomass_v1(data, 'biomasses')), 200
    Severity: Major
    Found in gfwanalysis/routes/api/v1/biomass_loss_router.py - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status