
from utilities.logger import ThreadLogger

logger = ThreadLogger(__name__)


def run(order, *args, **kwargs):
    # Return the order's status to "PENDING" if fewer than two users have
    # approved it.
    if len(order.approvers) < 2:
        order.status = "PENDING"
        order.save()

    return "SUCCESS", "", ""



def run(order, *args, **kwargs):
    # Return the order's status to "PENDING" if fewer than two users have
    # approved it.

    if len(order.approvers) < 2:
        order.status = "PENDING"
        order.save()

    return "SUCCESS", "", ""

Remove logger and fix typos
Remove logger and fix typos

[DEV-12140]

- 
- from utilities.logger import ThreadLogger
- 
- logger = ThreadLogger(__name__)
  
  
  def run(order, *args, **kwargs):
      # Return the order's status to "PENDING" if fewer than two users have
      # approved it.
+ 
      if len(order.approvers) < 2:
          order.status = "PENDING"
          order.save()
  
      return "SUCCESS", "", ""
  
Remove logger and fix typos
## Code Before:

from utilities.logger import ThreadLogger

logger = ThreadLogger(__name__)


def run(order, *args, **kwargs):
    # Return the order's status to "PENDING" if fewer than two users have
    # approved it.
    if len(order.approvers) < 2:
        order.status = "PENDING"
        order.save()

    return "SUCCESS", "", ""

## Instruction:
Remove logger and fix typos
## Code After:


def run(order, *args, **kwargs):
    # Return the order's status to "PENDING" if fewer than two users have
    # approved it.

    if len(order.approvers) < 2:
        order.status = "PENDING"
        order.save()

    return "SUCCESS", "", ""
