Skip to content

Commit

Permalink
Force IFSC codes to be strings
Browse files Browse the repository at this point in the history
- Fixes #69
  • Loading branch information
Nemo committed May 3, 2018
1 parent 49783d7 commit 8a5f28b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions scraper/scripts/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,6 @@ def export_to_code_json(list, ifsc_hash)
banks_hash[bank] = find_bank_branches(bank, list).map do |code|
# this is to drop lots of zeroes
branch_code = code.strip[-6,6]
if branch_code.match(/^(\d)+$/)
branch_code.to_i
else
branch_code
end
end
end

Expand Down

0 comments on commit 8a5f28b

Please sign in to comment.