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
Add capability to edit existing transaction entry #9
Comments
Hi, |
@vitokhangnguyen That'd be great! Firstly we would need to display row numbers next to each row within the output of Then we can define a new command to edit the selected row like so: # let's say we want to edit line 12
budget edit 12 "<new_date>, <new_amount>, <new_description>, <new_category>" Of course I'm open to suggestions if you have something else in mind in terms of how to use the new command. |
Hi, File "createtoken.py", line 1, in <module>
from oauth2client import file, client, tools
ModuleNotFoundError: No module named 'oauth2client' Although apparently installed, the |
Maybe you could try running pip3 install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib oauth2client separately and see if you get any errors. If you don't, running python3 createtoken.py should work as long as you have python3 and pip3 installed. |
I tried that and the output is many "Requirement already up-to-date/satisfied" including this line:
However, when I run
|
Actually, I fixed the issue by changing all the commands from "python3" to "python" and "pip3" to "pip". I do not know why since I do not have Python 2 on my computer and the only version is Python 3.7.4. |
It's very strange, I'm glad you found a solution though 👍 |
Hi @utkuufuk, I have done the basics of the feature. Just polishing and adding a few details now. The way I construct the new command is: budget edit [income | expense] [line_index] [new_transsaction] The line number will display in the
Is this what you want? Tell me if you want me to improve something. |
Update .gitignore to exclude config.json and venv Add line index to `budget log` add basic edit feature add constraint check and date adjustment Document changes in README.md
Update .gitignore to exclude config.json and venv Add line index to `budget log` add basic edit feature add constraint check and date adjustment Document changes in README.md Improve code for edit feature
Update .gitignore to exclude config.json and venv Add line index to `budget log` add basic edit feature add constraint check and date adjustment Document changes in README.md Improve code for edit feature Improve edit message
* Issue #9: Add edit transaction feature Update .gitignore to exclude config.json and venv Add line index to `budget log` add basic edit feature add constraint check and date adjustment Document changes in README.md Improve code for edit feature Improve edit message * restore config.json * polish error messages * rename some variables * simplify 'parseTransaction' function
No description provided.
The text was updated successfully, but these errors were encountered: