Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all the parsing errors #2

Merged
merged 1 commit into from
Jan 27, 2017

Conversation

icyflame
Copy link
Contributor

Fixed according to a pattern observed in the Excel sheet. This pattern is followed everywhere in the RBI excel sheet. i.e.

ADDRESS = BRANCH + "," + ACTUAL_BRANCH_ADDRESS

Fixes razorpay/ifsc#9

- It seems that the Branch name has been typed into the next column in the
  Excel sheet (ADDRESS), instead of the BRANCH column.
- This pattern is followed everywhere in the RBI excel sheet. i.e.

ADDRESS = BRANCH + ", " + ACTUAL_BRANCH_ADDRESS

Signed-off-by: Siddharth Kannan <kannan.siddharth12@gmail.com>
@captn3m0
Copy link
Contributor

Thanks a lot 💯

While I'll merge this, this will very likely show up in the next release again, unless the parser is fixed.

@captn3m0 captn3m0 merged commit b410d06 into razorpay:master Jan 27, 2017
@icyflame
Copy link
Contributor Author

@captn3m0 I could fix the parser to take into account some sane defaults, such as:

  1. If city can't be parsed, then take the district as the city, or try to infer city from the address (Slightly involved)
  2. If the branch can't be parsed, then take the prefix of the address, since the address is always strictly -BRANCH,ADDRESS (Should be easy)

Will have a look at the parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants