from openprocurement.api.utils import get_now


def request_get_now(request):
    return get_now()

from decimal import Decimal
from openprocurement.api.utils import get_now


def request_get_now(request):
    return get_now()

def to_decimal(fraction):
    return Decimal(fraction.numerator) / Decimal(fraction.denominator)

Add function to convert fraction to decimal
Add function to convert fraction to decimal

+ from decimal import Decimal
  from openprocurement.api.utils import get_now
  
  
  def request_get_now(request):
      return get_now()
  
+ def to_decimal(fraction):
+     return Decimal(fraction.numerator) / Decimal(fraction.denominator)
+ 
Add function to convert fraction to decimal
## Code Before:
from openprocurement.api.utils import get_now


def request_get_now(request):
    return get_now()

## Instruction:
Add function to convert fraction to decimal
## Code After:
from decimal import Decimal
from openprocurement.api.utils import get_now


def request_get_now(request):
    return get_now()

def to_decimal(fraction):
    return Decimal(fraction.numerator) / Decimal(fraction.denominator)
