transparency_epias/gas/gasTraClients.py
def notification_additional(self, startDate, endDate):

            '''
            This function returns 4 lists including;
                -Date informatin as first item.
                -Id information as second item.
                -Message information as third item.
                -Subject information as fourth item.

            Parameters:

            startDate: Start date in YYYY-MM-DD format.
            endDate: End date in YYYY-MM-DD format.

            '''

            val.date_check(startDate, endDate)

            query = "stp/additional-notification?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}'

            json_result = self.get_request_result(query)

            key_list = list(json_result['body'].keys())

            key_name = key_list[0]

            response_list = json_result['body'][f'{key_name}']

            date_list = []
            message_list = []
            subject_list = []
            id_list = []

            for item in response_list:
                date_list.append(item['date'])
                message_list.append(item['messageEn'])
                subject_list.append(item['subjectEn'])
                id_list.append(item['id'])

            return date_list, id_list, message_list, subject_list

            This function returns 4 lists including;
                -Date informatin as first item.
                -Id information as second item.
                -Message information as third item.
                -Subject information as fourth item.

            Parameters:

            startDate: Start date in YYYY-MM-DD format.
            endDate: End date in YYYY-MM-DD format.

            
This function returns 4 lists including;
Date informatin as first item.
Id information as second item.
Message information as third item.
Subject information as fourth item.



Start date in YYYY-MM-DD format.
endDate: End date in YYYY-MM-DD format.
This function returns 4 lists including ; Date informatin as first item . Id information as second item . Message information as third item . Subject information as fourth item . Start date in YYYY - MM - DD format . endDate : End date in YYYY - MM - DD format .
def notification_additional(self, startDate, endDate):
            val.date_check(startDate, endDate)
            query = "stp/additional-notification?"+"startDate="+f'{startDate}'+"&endDate="+f'{endDate}'
            json_result = self.get_request_result(query)
            key_list = list(json_result['body'].keys())
            key_name = key_list[0]
            response_list = json_result['body'][f'{key_name}']
            date_list = []
            message_list = []
            subject_list = []
            id_list = []
            for item in response_list:
                date_list.append(item['date'])
                message_list.append(item['messageEn'])
                subject_list.append(item['subjectEn'])
                id_list.append(item['id'])
            return date_list, id_list, message_list, subject_list
def notification_additional ( self , startDate , endDate ) : val . date_check ( startDate , endDate ) query = "stp/additional-notification?" + "startDate=" + f'{startDate}' + "&endDate=" + f'{endDate}' json_result = self . get_request_result ( query ) key_list = list ( json_result [ 'body' ] . keys ( ) ) key_name = key_list [ 0 ] response_list = json_result [ 'body' ] [ f'{key_name}' ] date_list = [ ] message_list = [ ] subject_list = [ ] id_list = [ ] for item in response_list : date_list . append ( item [ 'date' ] ) message_list . append ( item [ 'messageEn' ] ) subject_list . append ( item [ 'subjectEn' ] ) id_list . append ( item [ 'id' ] ) return date_list , id_list , message_list , subject_list
This function returns 4 lists including;
Date informatin as first item.
This function returns 4 lists including ; Date informatin as first item .
'''
            This function returns 4 lists including;
                -Date informatin as first item.
                -Id information as second item.
                -Message information as third item.
                -Subject information as fourth item.

            Parameters:

            startDate: Start date in YYYY-MM-DD format.
            endDate: End date in YYYY-MM-DD format.

            '''
self
startDate
endDate