aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/run.py
AgeCommit message (Collapse)AuthorFilesLines
2020-11-13Use Flask-Babel to localize datetime in the History PageBaptiste Jonglez1-2/+5
By formatting datetime on the server, we get nice localized datetime strings that are adapted to the currently-selected language. Example: - English: "Apr 26, 2020, 3:58:54 PM" - French: "26 avr. 2020 à 15:58:54" - German: "26.04.2020, 15:58:54" - Spanish: "26 abr. 2020 15:58:54" - Indonesian: "26 Apr 2020 15.58.54" - Chinese: "2020年4月26日 下午3:58:54" However, there is a downside: time is not adapted to the user timezone. The solution is to define a timezone on the server: we use the server OS timezone by default, and it can be customized through the BABEL_DEFAULT_TIMEZONE setting. It's still not ideal, because it assumes that all users are in the same timezone (the one configured on the server).
2020-08-27update to black 20.8b1 (#676)Glandos1-3/+2
Some trailing commas were removed because of some black changes.
2020-05-21Replace currencyformat_nc with currency filter (#625)Glandos1-2/+6
2020-05-07Improve currencies (#604)Glandos1-1/+17
- Rename "No Currency" to ISO4217 "XXX" - Use Babel to render currency symbols and names in currency lists - Improve i18n in bill lists Fix #601 Fix #600
2020-04-29Feature/currencies (#541)dark0dave1-0/+4
Now each project can have a currency, default to None. Each bill can use a different currency, and a conversion to project default currency is done on settle. Fix #512
2020-04-21Add isort support. (#561)Rémy HUBSCHER1-4/+3
2020-02-20Added support for multiple API versions (#533)DavidRThrashJr1-2/+2
* Added support for multiple API versions Note that no changes were made to the api, the code was refactored to allow for new versions of the api to be created down the road. Here's what this would look like: +-- api/ +-- v1/ +-- __init__.py +-- resources.py +-- v1_1/ +-- __init__.py +-- resources.py +-- v2/ +-- __init__.py +-- resources.py +-- __init__.py +-- common.py * reformatted using black /Users/drthrash/PycharmProjects/ihatemoney/ihatemoney/api/v1/resources.py reformatted /Users/drthrash/PycharmProjects/ihatemoney/ihatemoney/api/common.py All done! ✨ 🍰 ✨ * Applying fix for unused import in init.py https://stackoverflow.com/questions/31079047/python-pep8-class-in-init-imported-but-not-used * Formatting changes recommended by black All done! ✨ 🍰 ✨ 1 file reformatted, 22 files left unchanged.
2019-10-14Use black to refomat the files.Alexis M1-33/+40
2019-10-11Enhance pytest support, update ProxyFix import.Alexis M1-1/+1
2019-08-18Arrange navbar items by functionsBrice Maron1-2/+8
2018-09-03Add a handler when pages aren't found. (#379)Alexis Metaireau1-2/+7
Fixes #356
2018-08-11Remove Sentry, as it's not used anymore on prod. (#380)Alexis Metaireau1-4/+0
Fixes #312.
2018-08-05Merge branch 'master' into almet/fix-pbkdf2-checkAlexis Métaireau1-1/+3
2018-01-25API: Migrate from flask-rest to flask-restful (#315)0livd1-1/+3
The flask-rest custom json encoder is still needed and thus was added to ihatemoney's utils. Closes #298
2018-01-05Do not enforce a check on sha256 hash algorithm.Alexis Métaireau1-1/+1
This makes it inconsistent with our own generated passwords. Only check that the password has been hashed. Fixes #310.
2017-11-01Update installation doc to include doc about production values, fix #266. (#282)Lucas Verney1-0/+7
2017-08-20Protect admin endpoints against brute force attacks (#249)0livd1-0/+6
* Protect admin endpoints against brute force attacks Add a throttling mechanism to prevent a client brute forcing the authentication form, based on its ip address Closes #245 * Reset attempt counters if they get memory hungry
2017-07-07Absolute imports & some other improvements (#243)Alexis Metaireau1-0/+144
* Use absolute imports and rename package to ihatemoney * Add a ihatemoney command * Factorize application creation logic * Refactor the tests * Update the wsgi.py module with the new create_app() function * Fix some styling thanks to Flake8. * Automate Flake8 check in the CI.