Giter VIP home page Giter VIP logo

Comments (12)

torbengb avatar torbengb commented on May 20, 2024

Note: Item 1 above already exists as closed ticket #20. If we decide to build that new function, the #20 code could be moved there.

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

I don't think this is a good idea, on further consideration. It goes against the try-except flow we're using. The CLI output at the moment is superfluous, I agree, but I don't think this is the right approach as it will end up duplicating code. I think a better approach would be to tell the user what folder is being used once the file list is found. I'll play with this a bit and get back to you.

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

Please review the code over in #58 and see what you think of the output.

from bank2ynab.

torbengb avatar torbengb commented on May 20, 2024

goes against the try-except flow we're using

You're right. I like the idea of being consistent. I just tested #58 as you asked, using an invalid path, and it acted odd to me: first it complained about the directory not found, and then it processed a file, then it complained again, and processed the other file. I understand, technically, that it just does a fallback to the default which is where 2 files happen to be, but that doesn't rhyme with the error messages then. Thoughts?

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

from bank2ynab.

torbengb avatar torbengb commented on May 20, 2024

Do you feel this looks like what you expected:

Your specified download directory was not found: /home/torben/Downloadsx
Parsing file: elbi_umsaetze_20171024191306.csv
Using format: AT Raiffeisen Bank
Writing file: fixed_elbi_umsaetze_20171024191306.csv
Done!
Your specified download directory was not found: /home/torben/Downloadsx
Parsing file: finstatus_20171024191324.csv
Using format: AT Raiffeisen VISA
Writing file: fixed_finstatus_20171024191324.csv
Done!
2 files processed.

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

Yeah, that's what I would've expected. Maybe it would be better to specify the format first, but that makes sense to me.

from bank2ynab.

torbengb avatar torbengb commented on May 20, 2024

I'm sorry but that output doesn't make sense to me as a user...

  • "First it says it can't find the download, and then it still processes something? How?" Maybe it should then also state what directory it defaults to. That would clear up some confusion.
  • "It has already told me once that it couldn't find my directory; small wonder that it still can't find it half a second later, eh?" I understand that it happens because of where it is in the code, but it doesn't look too smart.

I hope I didn't offend, it isn't meant to!

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

from bank2ynab.

torbengb avatar torbengb commented on May 20, 2024

necessary to state it for each section in case of custom directories being set in the individual formats.

That's a valid point!

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

Changed things around a bit. Example output below.

python bank2ynab.py
Format: AT Raiffeisen Bank
Can't find: c:\users\example-username\Downloads
Trying: D:\Users\nocalla\Downloads
Parsing file: elbi_umsaetze_ (2).csv
Writing file: fixed_elbi_umsaetze_ (2).csv
Removing file: elbi_umsaetze_ (2).csv
Done!
Format: IE Bank of Ireland
Can't find: c:\users\example-username\Downloads
Trying: D:\Users\nocalla\Downloads
Parsing file: test_BOI_TransactionExport.csv
Writing file: fixed_test_BOI_TransactionExport.csv
Removing file: test_BOI_TransactionExport.csv
Done!
2 files processed.

from bank2ynab.

nocalla avatar nocalla commented on May 20, 2024

This should be resolved appropriately in master now.

from bank2ynab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.