src/dirbs/importer/operator_data_importer.py
def _date_range_for_month_year(self, month, year):
        """Helper function to return a pair of dates for start and end date given a month and year.

        The minimum allowed date in this partition is the first day of the year and month it represents.
        We then work out the maximum allowed date. It is actually easy to get the first date of the *next*
        month and use a less than constraint.
        """
        start_date = datetime.date(year, month, 1)
        if month == 12:
            # If we're in December, we actually need to increment a full year to get the next month (overflow)
            end_date = datetime.date(year + 1, 1, 1)
        else:
            # Otherwise just add once to the month to get the first of the next month
            end_date = datetime.date(year, month + 1, 1)
        return start_date, end_date
Helper function to return a pair of dates for start and end date given a month and year.

        The minimum allowed date in this partition is the first day of the year and month it represents.
        We then work out the maximum allowed date. It is actually easy to get the first date of the *next*
        month and use a less than constraint.
        
Helper function to return a pair of dates for start and end date given a month and year.
The minimum allowed date in this partition is the first day of the year and month it represents.
We then work out the maximum allowed date. It is actually easy to get the first date of the *next
month and use a less than constraint.
Helper function to return a pair of dates for start and end date given a month and year . The minimum allowed date in this partition is the first day of the year and month it represents . We then work out the maximum allowed date . It is actually easy to get the first date of the * next month and use a less than constraint .
def _date_range_for_month_year(self, month, year):
        start_date = datetime.date(year, month, 1)
        if month == 12:
            end_date = datetime.date(year + 1, 1, 1)
        else:
            end_date = datetime.date(year, month + 1, 1)
        return start_date, end_date
def _date_range_for_month_year ( self , month , year ) : start_date = datetime . date ( year , month , 1 ) if month == 12 : end_date = datetime . date ( year + 1 , 1 , 1 ) else : end_date = datetime . date ( year , month + 1 , 1 ) return start_date , end_date
Helper function to return a pair of dates for start and end date given a month and year.
Helper function to return a pair of dates for start and end date given a month and year .
"""Helper function to return a pair of dates for start and end date given a month and year.

        The minimum allowed date in this partition is the first day of the year and month it represents.
        We then work out the maximum allowed date. It is actually easy to get the first date of the *next*
        month and use a less than constraint.
        """ # If we're in December, we actually need to increment a full year to get the next month (overflow) # Otherwise just add once to the month to get the first of the next month
self
month
year