Skip to content

Commit

Permalink
Remove DATE field
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo committed Dec 25, 2020
1 parent 41b2997 commit 7a9ef80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scraper/scripts/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse_rtgs(banks)

def export_csv(data)
CSV.open('data/IFSC.csv', 'wb') do |csv|
keys = ['BANK','IFSC','BRANCH','CENTRE','DISTRICT','STATE','ADDRESS','CONTACT','IMPS','RTGS','CITY','NEFT','MICR','UPI']
keys = ['BANK','IFSC','BRANCH','CENTRE','DISTRICT','STATE','ADDRESS','CONTACT','IMPS','RTGS','CITY','NEFT','MICR','UPI', 'SWIFT']
csv << keys
data.each do |code, ifsc_data|
sorted_data = []
Expand Down Expand Up @@ -214,6 +214,9 @@ def merge_dataset(neft, rtgs, imps)
combined_data['IMPS'] ||= true
combined_data['UPI'] ||= false
combined_data['MICR'] ||= nil
combined_data['SWIFT'] = nil
combined_data.delete('DATE')

h[ifsc] = combined_data
end
h
Expand Down

0 comments on commit 7a9ef80

Please sign in to comment.