def check_int()

in microservices/extraction_service/src/utils/utils_functions.py [0:0]


def check_int(d):
  """
    This function check given string is integer
    Parameters
    ----------
    d: input string
    Returns: True/False
    -------
  """
  count = 0
  date_val = ""
  for i in d:
    if i and (i.strip()).isdigit():
      count = count + 1
      date_val += str(i.strip())

  flag = ((count >= 2) and (len(date_val) < 17))
  return flag