{"size": 853, "ext": "js", "max_stars_repo_path": "Airdrop/filemanger/errorAirdropList.js", "max_stars_repo_name": "Edison-zhu/TokenAir", "max_stars_repo_stars_event_min_datetime": "2021-06-22T19:02:08.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-26T07:14:29.000Z", "max_issues_repo_path": "Airdrop/filemanger/errorAirdropList.js", "max_issues_repo_name": "Edison-zhu/TokenAir", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Airdrop/filemanger/errorAirdropList.js", "max_forks_repo_name": "Edison-zhu/TokenAir", "max_forks_repo_forks_event_min_datetime": "2020-05-14T03:42:01.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-10T09:19:28.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 27.5161290323, "max_line_length": 85, "alphanum_fraction": 0.715123095}
/**
 * Created by zhuyanbing on 2018/11/13.
 */

var excelManager = require('./excelHandleManager');

function getErrorAddressList(airdropListFilePath,errorAddressListPath,addressIndex) {

    var data = excelManager.readExcelContent(airdropListFilePath);
    var writeFileContent = [];

    for (var i in data){

        var arr = data[i];
        var obj = arr[addressIndex];
        if (obj.length !== 42 && writeFileContent.indexOf(arr) === -1) {
            writeFileContent.push(arr);
        }
    }

    excelManager.writeDataToExcel(writeFileContent,errorAddressListPath);
}

var Config = require('./../config/config.js');

var errorAirdropListPath = Config.filePath.errorAirdropListPath;
var totalAirdropListPath = './itc_airdrop_total.xlsx';
var addressIndex = 3;


getErrorAddressList(totalAirdropListPath,errorAirdropListPath,addressIndex);