from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender


class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
    """ ESCO Tender configuration adapter """

    name = "esco Tender configurator"
    model = Tender

    # Param to configure award criteria - awards are generated from higher to lower by value.amount
    reverse_awarding_criteria = True

from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender


class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
    """ ESCO Tender configuration adapter """

    name = "esco Tender configurator"
    model = Tender

    # Param to configure award criteria - awards are generated from higher to lower by value.amount
    reverse_awarding_criteria = True

    # Param to set awarding criteria field
    awarding_criteria_key = 'amountPerfomance'

Add awarding criteria field to configurator
Add awarding criteria field to configurator

  from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
  from openprocurement.tender.esco.models import Tender
  
  
  class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
      """ ESCO Tender configuration adapter """
  
      name = "esco Tender configurator"
      model = Tender
  
      # Param to configure award criteria - awards are generated from higher to lower by value.amount
      reverse_awarding_criteria = True
  
+     # Param to set awarding criteria field
+     awarding_criteria_key = 'amountPerfomance'
+ 
Add awarding criteria field to configurator
## Code Before:
from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender


class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
    """ ESCO Tender configuration adapter """

    name = "esco Tender configurator"
    model = Tender

    # Param to configure award criteria - awards are generated from higher to lower by value.amount
    reverse_awarding_criteria = True

## Instruction:
Add awarding criteria field to configurator
## Code After:
from openprocurement.tender.openeu.adapters import TenderAboveThresholdEUConfigurator
from openprocurement.tender.esco.models import Tender


class TenderESCOConfigurator(TenderAboveThresholdEUConfigurator):
    """ ESCO Tender configuration adapter """

    name = "esco Tender configurator"
    model = Tender

    # Param to configure award criteria - awards are generated from higher to lower by value.amount
    reverse_awarding_criteria = True

    # Param to set awarding criteria field
    awarding_criteria_key = 'amountPerfomance'
