Right now, if a value in an array is removed and the array is not empty, we will generate 2 diffs - one for a change and one for a remove.
Fix this.
e.g:
2020-11-04 15:36:01,641 INFO changes: [{'ticker': 'AGDY', 'date': '2020-11-04 13:36:00+00:00', 'changed_key': 'standardDirectorList.0.name', 'old': 'Erik Jablonowski', 'new': 'Gerald Agnew', 'diff_type': 'change'}, {'ticker': 'AGDY', 'date': '2020-11-04 13:36:00+00:00', 'changed_key': 'standardDirectorList', 'old': None, 'new': {'name': 'Erik Jablonowski', 'title': 'Director', 'boards': 'Independent Director'}, 'diff_type': 'add'}, {'ticker': 'AGDY', 'date': '2020-11-04 13:36:00+00:00', 'changed_key': 'officers.0.name', 'old': 'Joseph Amrams', 'new': 'Joseph Amram', 'diff_type': 'change'}]
old:
{"_id":{"$oid":"5fa2a8cf211617f2789cedbb"},"id":36334,"name":"Agri-Dynamics, Inc.","city":"Forest Hills","state":"NY","zip":"11375 ","countryId":"USA","country":"United States","address1":"107-23 71st Ave Suite# 193","website":"http://www.agri-dynamicsinc.com","phone":"515-329-0208","businessDesc":"AGRI-DYNAMICS, INC., (OTC MARKETS: AGDY) has been reinvented as a holding company like a SPAC that intends to acquire and joint venture with corporations that will help us increase revenue and generate valuable assets in various sectors. We specialize in the acquisition, investment and development of small or large businesses. The company's current research is in the energy, commodity, technology and agricultural sectors. We feel that today's market maintains a truly unprecedented opportunity for the acquisition in proven mining claims, high technology as well as valuable intellectual properties. Our aim is to grow our revenue, in part by assisting our subsidiaries to attain their revenue forecasts by making available additional financing, experienced personnel, distribution, marketing, and other services. AGRI-DYNAMICS, INC., is currently in search of valuable gold and silver mines that are close to production or will be in a reasonable amount of time. These assets can add immense value to the company quickly. AGRI-DYNAMICS, INC., (OTC Markets: AGDY) originally an agricultural and machine equipment Company, was founded in Iowa on December 8, 1961. For more information see the companies financial statements and related filings on OTCMarkets.com","stateOfIncorporation":"IA ","stateOfIncorporationName":"Iowa","countryOfIncorporation":"USA","countryOfIncorporationName":"United States","yearOfIncorporation":"1961","premierDirectorList":[{"name":"Joseph Amram","title":"Chairman","boards":""}],"standardDirectorList":[{"name":"Erik Jablonowski","title":"Director","boards":"Independent Director"}],"officers":[{"name":"Joseph Amrams","title":"CEO, President","boards":""}],"fiscalYearEnd":"6/30","filingCycle":"Q","edgarFilingStatus":"Alternative Reporting Standard","edgarFilingStatusId":"A","reportingStandard":"Dark: Alternative Reporting Standard","reportingStandardMin":"Dark or Defunct","isDark":true,"deregistered":true,"deregistrationDate":{"$numberLong":"1249876800000"},"is12g32b":false,"cik":"0000002817","isAlternativeReporting":true,"isBankThrift":false,"isNonBankRegulated":false,"isInternationalReporting":false,"isOtherReporting":false,"auditedStatusDisplay":"Not Available","auditStatus":"N","audited":false,"email":"[email protected]","numberOfEmployees":5,"numberOfEmployeesAsOf":{"$numberLong":"1544677200000"},"numberOfRecordShareholders":38,"numberOfRecordShareholdersDate":{"$numberLong":"1389070800000"},"primarySicCode":"1382 - Oil and gas exploration services","auditors":[],"investorRelationFirms":[],"legalCounsels":[],"investmentBanks":[],"corporateBrokers":[],"securities":[{"id":577,"tierId":22,"symbol":"AGDY","cusip":"008495202","compId":36334,"issueName":"AGRI-DYNAMICS INC","className":"Common Stock","primaryVenue":"OTC Link","categoryId":4,"categoryName":"No Information","isBB":false,"isPinkSheets":false,"isNoInfo":true,"hasLevel2":false,"isLevel2Entitled":false,"typeCode":"CS","typeName":"Common Stock","tierName":"Pink No Information","tierGroupId":"PS","tierCode":"PN","tierStartDate":{"$numberLong":"1404187200000"},"tierDisplayName":"Pink No Information","ratioAdr":1,"isAdr":false,"isGdr":false,"isTest":false,"isOtcQX":false,"isSponsored":false,"isPiggyBacked":true,"isCaveatEmptor":false,"canAccessBB":false,"noPar":false,"parValue":0.001,"outstandingShares":1900400000,"outstandingSharesAsOfDate":{"$numberLong":"1602216000000"},"authorizedShares":{"$numberLong":"52000000000"},"unlimitedAuthorizedShares":false,"authorizedSharesAsOfDate":{"$numberLong":"1602216000000"},"publicFloat":9423157,"publicFloatAsOfDate":{"$numberLong":"1374120000000"},"isExchangeQualified":false,"shortInterest":7190,"shortInterestChange":0,"shortInterestDate":{"$numberLong":"1602734400000"},"restrictedShares":1880000000,"restrictedSharesAsOfDate":{"$numberLong":"1602216000000"},"unrestrictedShares":20400000,"unrestrictedSharesAsOfDate":{"$numberLong":"1602216000000"},"sigFailDeliver":false,"numOfRecordShareholders":38,"numOfRecordShareholdersDate":{"$numberLong":"1389070800000"},"transferAgents":[{"id":2350,"type":"CS","name":"Action Stock Transfer Corporation","phone":"801-274-1088","website":"http://www.actionstocktransfer.com","email":"[email protected]","countryId":"USA","country":"United States","address1":"2469 E. Fort Union Blvd","address2":"Suite 214","city":"Salt Lake City","stateId":"UT","zip":"84121","roles":["Transfer Agent"],"isPublic":true,"hasLogo":false,"isGoodStanding":true,"isProhibited":false,"isQuestionable":false,"isAttorney":false,"isSponsor":false,"public":true}],"notes":["Capital Change=11-71 shares decreased by 1 for 5 reverse split."],"isUnsolicited":false,"showTrustedLogoForAuthorizedShares":true,"showTrustedLogoForOutstandingShares":true,"showTrustedLogoForRestrictedShares":true,"showTrustedLogoForUnrestrictedShares":true,"showTrustedLogoForDTCShares":false}],"otherSecurities":[],"estimatedMarketCap":12162560,"estimatedMarketCapAsOfDate":{"$numberLong":"1604379600000"},"blankCheck":false,"blindPool":false,"spac":false,"hasLatestFiling":true,"latestFilingType":"Interim Financial Report","latestFilingDate":{"$numberLong":"1388466000000"},"latestFilingUrl":"/company/financial-report/116399/content","tierGroup":"PS","tierCode":"PN","tierStartDate":{"$numberLong":"1404187200000"},"hasLogo":true,"companyLogoUrl":"/company/logo/AGDY","isCaveatEmptor":false,"otcAward":{"symbol":"AGDY","best50":false},"indexStatuses":[],"unableToContact":false,"isShell":false,"isBankrupt":false,"isProfileVerified":true,"profileVerifiedAsOfDate":"6/02/2020","venue":"OTC Link","isUnsolicited":false,"ticker":"AGDY","date":"2020-11-04 13:12:46+00:00"}
new:
{'id': 36334, 'name': 'Agri-Dynamics, Inc.', 'city': 'Forest Hills', 'state': 'NY', 'zip': '11375 ', 'countryId': 'USA', 'country': 'United States', 'address1': '107-23 71st Ave Suite# 193', 'website': 'http://www.agri-dynamicsinc.com', 'phone': '515-329-0208', 'businessDesc': "AGRI-DYNAMICS, INC., (OTC MARKETS: AGDY) has been reinvented as a holding company like a SPAC that intends to acquire and joint venture with corporations that will help us increase revenue and generate valuable assets in various sectors. We specialize in the acquisition, investment and development of small or large businesses. The company's current research is in the energy, commodity, technology and agricultural sectors. We feel that today's market maintains a truly unprecedented opportunity for the acquisition in proven mining claims, high technology as well as valuable intellectual properties. Our aim is to grow our revenue, in part by assisting our subsidiaries to attain their revenue forecasts by making available additional financing, experienced personnel, distribution, marketing, and other services. AGRI-DYNAMICS, INC., is currently in search of valuable gold and silver mines that are close to production or will be in a reasonable amount of time. These assets can add immense value to the company quickly. AGRI-DYNAMICS, INC., (OTC Markets: AGDY) originally an agricultural and machine equipment Company, was founded in Iowa on December 8, 1961. For more information see the companies financial statements and related filings on OTCMarkets.com", 'stateOfIncorporation': 'IA ', 'stateOfIncorporationName': 'Iowa', 'countryOfIncorporation': 'USA', 'countryOfIncorporationName': 'United States', 'yearOfIncorporation': '1961', 'premierDirectorList': [{'name': 'Joseph Amram', 'title': 'Chairman', 'boards': ''}], 'standardDirectorList': [{'name': 'Gerald Agnew', 'title': 'Director', 'boards': 'Independent Director'}, {'name': 'Erik Jablonowski', 'title': 'Director', 'boards': 'Independent Director'}], 'officers': [{'name': 'Joseph Amram', 'title': 'CEO, President', 'boards': ''}], 'fiscalYearEnd': '6/30', 'filingCycle': 'Q', 'edgarFilingStatus': 'Alternative Reporting Standard', 'edgarFilingStatusId': 'A', 'reportingStandard': 'Dark: Alternative Reporting Standard', 'reportingStandardMin': 'Dark or Defunct', 'isDark': True, 'deregistered': True, 'deregistrationDate': 1249876800000, 'is12g32b': False, 'cik': '0000002817', 'isAlternativeReporting': True, 'isBankThrift': False, 'isNonBankRegulated': False, 'isInternationalReporting': False, 'isOtherReporting': False, 'auditedStatusDisplay': 'Not Available', 'auditStatus': 'N', 'audited': False, 'email': '[email protected]', 'numberOfEmployees': 5, 'numberOfEmployeesAsOf': 1544677200000, 'numberOfRecordShareholders': 38, 'numberOfRecordShareholdersDate': 1389070800000, 'primarySicCode': '1382 - Oil and gas exploration services', 'auditors': [], 'investorRelationFirms': [], 'legalCounsels': [], 'investmentBanks': [], 'corporateBrokers': [], 'securities': [{'id': 577, 'tierId': 22, 'symbol': 'AGDY', 'cusip': '008495202', 'compId': 36334, 'issueName': 'AGRI-DYNAMICS INC', 'className': 'Common Stock', 'primaryVenue': 'OTC Link', 'categoryId': 4, 'categoryName': 'No Information', 'isBB': False, 'isPinkSheets': False, 'isNoInfo': True, 'hasLevel2': False, 'isLevel2Entitled': False, 'typeCode': 'CS', 'typeName': 'Common Stock', 'tierName': 'Pink No Information', 'tierGroupId': 'PS', 'tierCode': 'PN', 'tierStartDate': 1404187200000, 'tierDisplayName': 'Pink No Information', 'ratioAdr': 1.0, 'isAdr': False, 'isGdr': False, 'isTest': False, 'isOtcQX': False, 'isSponsored': False, 'isPiggyBacked': True, 'isCaveatEmptor': False, 'canAccessBB': False, 'noPar': False, 'parValue': 0.001, 'outstandingShares': 1900400000, 'outstandingSharesAsOfDate': 1602216000000, 'authorizedShares': 52000000000, 'unlimitedAuthorizedShares': False, 'authorizedSharesAsOfDate': 1602216000000, 'publicFloat': 9423157, 'publicFloatAsOfDate': 1374120000000, 'isExchangeQualified': False, 'shortInterest': 7190, 'shortInterestChange': 0.0, 'shortInterestDate': 1602734400000, 'restrictedShares': 1880000000, 'restrictedSharesAsOfDate': 1602216000000, 'unrestrictedShares': 20400000, 'unrestrictedSharesAsOfDate': 1602216000000, 'sigFailDeliver': False, 'numOfRecordShareholders': 38, 'numOfRecordShareholdersDate': 1389070800000, 'transferAgents': [{'id': 2350, 'type': 'CS', 'name': 'Action Stock Transfer Corporation', 'phone': '801-274-1088', 'website': 'http://www.actionstocktransfer.com', 'email': '[email protected]', 'countryId': 'USA', 'country': 'United States', 'address1': '2469 E. Fort Union Blvd', 'address2': 'Suite 214', 'city': 'Salt Lake City', 'stateId': 'UT', 'zip': '84121', 'roles': ['Transfer Agent'], 'isPublic': True, 'hasLogo': False, 'isGoodStanding': True, 'isProhibited': False, 'isQuestionable': False, 'isAttorney': False, 'isSponsor': False, 'public': True}], 'notes': ['Capital Change=11-71 shares decreased by 1 for 5 reverse split.'], 'isUnsolicited': False, 'showTrustedLogoForAuthorizedShares': True, 'showTrustedLogoForOutstandingShares': True, 'showTrustedLogoForRestrictedShares': True, 'showTrustedLogoForUnrestrictedShares': True, 'showTrustedLogoForDTCShares': False}], 'otherSecurities': [], 'estimatedMarketCap': 12162560.0, 'estimatedMarketCapAsOfDate': 1604379600000, 'blankCheck': False, 'blindPool': False, 'spac': False, 'hasLatestFiling': True, 'latestFilingType': 'Interim Financial Report', 'latestFilingDate': 1388466000000, 'latestFilingUrl': '/company/financial-report/116399/content', 'tierGroup': 'PS', 'tierCode': 'PN', 'tierStartDate': 1404187200000, 'hasLogo': True, 'companyLogoUrl': '/company/logo/AGDY', 'isCaveatEmptor': False, 'otcAward': {'symbol': 'AGDY', 'best50': False}, 'indexStatuses': [], 'unableToContact': False, 'isShell': False, 'isBankrupt': False, 'isProfileVerified': True, 'profileVerifiedAsOfDate': '6/02/2020', 'venue': 'OTC Link', 'isUnsolicited': False, 'ticker': 'AGDY', 'date': '2020-11-04 13:36:00+00:00'}