gbmodel/model_sqlalchemy.py
def check_dates(self, start, end):
        """
        Check if start and end dates are valid
        Input: start and end dates
        Output: Return 0 if valid (both start and end date being empty is valid)
                Return 1 if start date is after the end date
                Return 2 if either start date or end date is empty (but not both)
        """
        params = {'start': start, 'end': end}
        if params['start'] and params['end']:
            if int(params['start']) > int(params['end']):
                return 1
            else:
                return 0
        elif params['start'] is None and params['end'] is None:
            return 0
        return 2

        Check if start and end dates are valid
        Input: start and end dates
        Output: Return 0 if valid (both start and end date being empty is valid)
                Return 1 if start date is after the end date
                Return 2 if either start date or end date is empty (but not both)
        
Check if start and end dates are valid
Input: start and end dates
Output: Return 0 if valid (both start and end date being empty is valid)
Return 1 if start date is after the end date
Return 2 if either start date or end date is empty (but not both)
Check if start and end dates are valid Input : start and end dates Output : Return 0 if valid ( both start and end date being empty is valid ) Return 1 if start date is after the end date Return 2 if either start date or end date is empty ( but not both )
def check_dates(self, start, end):
        params = {'start': start, 'end': end}
        if params['start'] and params['end']:
            if int(params['start']) > int(params['end']):
                return 1
            else:
                return 0
        elif params['start'] is None and params['end'] is None:
            return 0
        return 2
def check_dates ( self , start , end ) : params = { 'start' : start , 'end' : end } if params [ 'start' ] and params [ 'end' ] : if int ( params [ 'start' ] ) > int ( params [ 'end' ] ) : return 1 else : return 0 elif params [ 'start' ] is None and params [ 'end' ] is None : return 0 return 2
Check if start and end dates are valid
Input: start and end dates
Output: Return 0 if valid (both start and end date being empty is valid)
Return 1 if start date is after the end date
Return 2 if either start date or end date is empty (but not both)
Check if start and end dates are valid Input : start and end dates Output : Return 0 if valid ( both start and end date being empty is valid ) Return 1 if start date is after the end date Return 2 if either start date or end date is empty ( but not both )
"""
        Check if start and end dates are valid
        Input: start and end dates
        Output: Return 0 if valid (both start and end date being empty is valid)
                Return 1 if start date is after the end date
                Return 2 if either start date or end date is empty (but not both)
        """
self
start
end