Commit graph

1388 commits

Author SHA1 Message Date
Tom Roussel
9eb18f2f99 Manually handle the new Enum creation
Alembic does not handle postgres Enums correctly, so we need to manually
generate the new enum type.
See https://github.com/sqlalchemy/alembic/issues/278
2024-03-16 10:53:50 +01:00
Tom Roussel
ee12618b3b Made "Settlement" translatable 2024-03-11 20:54:14 +01:00
Tom Roussel
adba0efad0 Replaced string bill type with enum 2024-03-10 17:59:32 +01:00
Tom Roussel
9daec6dbfa Removed unnecessary comments 2024-03-10 17:58:23 +01:00
Tom Roussel
3542ee220d Removed commented code 2024-03-09 10:14:07 +01:00
Tom Roussel
4c2b357032 Removed bill type from the Bills html table 2024-03-09 10:13:39 +01:00
Tom Roussel
0e2534fb12 Use enum name instead of value as SQL server_default
SQLAlchemy uses the Enum names in the database, as the values could be
generic python objects.
https://docs.sqlalchemy.org/en/20/core/type_basics.html#sqlalchemy.types.Enum
2024-03-03 10:30:00 +01:00
Tom Roussel
8acbf714f7 bill_type is now an optional parameter in the BillForm 2024-03-03 10:18:54 +01:00
Tom Roussel
b602134772 Added migration rule and set default bill_type in alembic 2024-03-03 09:42:28 +01:00
Tom Roussel
33b8cafb3e Removed 'Transfer' bill type 2024-03-02 17:23:12 +01:00
Tom Roussel
49286448ec Fixed billtype displaying in all caps 2024-03-02 12:52:57 +01:00
Tom Roussel
bf9601377d Added test checking correct bill_type validation 2024-03-02 12:52:55 +01:00
Tom Roussel
b0a67a5156 Changed bill_type to an Enum 2024-03-02 12:52:54 +01:00
Tom Roussel
8cef9492d0 Reverted unnecessary string edit 2024-03-02 12:52:52 +01:00
Tom Roussel
63a97c7c5f Typo fix 2024-03-02 12:52:50 +01:00
Tom Roussel
e0068ed6e6 Removed commented code 2024-03-02 12:52:49 +01:00
Tom Roussel
9694a65f0e Fixed missing bill_type in unit tests 2024-03-02 12:52:45 +01:00
Tom Roussel
87edf49bad Replaced assertEqual with assert 2024-03-02 12:51:40 +01:00
Tom
411965dbe0 Merge branch 'master' into flowing_master 2024-02-24 13:47:19 +01:00
2bb535070a
[chore] Remove deprecated Jinja2 extensions. (#1279)
autoescape and with extensions are now built-in
to the Jinja2 compiler since v3.

See https://jinja.palletsprojects.com/en/3.1.x/changes/#version-3-0-0
2024-02-06 03:33:08 +01:00
zorun
1dcb0ba78b
Update security support status (#1275)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2024-02-06 03:32:49 +01:00
Jinx
fa4a881ae1 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Jinx <me@qqays.xyz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2023-12-14 02:03:15 +01:00
Éloi Rivard
edefb51cfb
move from setuptools to hatch (#1258)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2023-12-12 14:20:34 +01:00
Oğuz Ersen
9f7ecf6614 Translated using Weblate (Turkish)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2023-12-12 12:12:31 +01:00
Clonewayx
7fd00344e2 Translated using Weblate (Czech)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Clonewayx <fillip1@seznam.cz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2023-12-12 12:12:31 +01:00
Ema Havrdová
6ec3ba6f77 Translated using Weblate (Czech)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Ema Havrdová <emicka.havrdova@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2023-12-12 12:12:31 +01:00
Wilfredo Gomez
511ba86c4c Translated using Weblate (Spanish (Latin America))
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Wilfredo Gomez <thepageguy@mailfence.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es_419/
Translation: I Hate Money/I Hate Money
2023-12-12 12:12:31 +01:00
Jesper
54a5b0e63e Translated using Weblate (Swedish)
Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: Jesper <93771679+Bjorkan@users.noreply.github.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2023-12-12 12:12:31 +01:00
zorun
2ce1ea4bf2
Fix missing markdown include in manifest (#1274)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2023-12-07 22:21:07 +01:00
Éloi Rivard
8bce025c15 chore: support for python 3.12 2023-11-23 23:08:39 +01:00
Nicholas (Nick) Meyer
bb30813ec4 Make APPLICATION_ROOT wording more consistent
Default APPLICATION_ROOT is "/", so "By default" is more accurate than
"If empty" for the default value.
2023-11-23 08:35:21 +01:00
Nicholas (Nick) Meyer
ecf9a7b590 Fix APPLICATION_ROOT example in docs
If the application is hosted on the path /somestring, static asset
paths need to have prefix /somestring/static/ but setting
APPLICATION_ROOT to "somestring" will result in a relative path which
will give a 4XX. Using "/somestring" fixes this.

Also fix default value, which is "/" and not the empty string.
2023-11-23 08:35:21 +01:00
Baptiste Jonglez
b74ac1077c Backport changelog for 6.1.3 from stable-6.1 branch 2023-11-23 08:26:18 +01:00
Baptiste Jonglez
76e8b3baf0 CI: run tests and docker build on stable branches 2023-11-19 11:19:08 +01:00
Baptiste Jonglez
8cd60c1bf5 Back to development: 6.2.0 2023-11-19 11:19:08 +01:00
Baptiste Jonglez
2d7c6486e9 Preparing release 6.1.2 2023-11-19 11:19:08 +01:00
Baptiste Jonglez
db7c9ea2b3 Update changelog for 6.1.2 2023-11-19 11:19:08 +01:00
gallegonovato
d1382a691b Translated using Weblate (Spanish)
Currently translated at 100.0% (276 of 276 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (276 of 276 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2023-11-18 10:36:00 +01:00
Kamborio
d02ec152f7 Translated using Weblate (Spanish)
Currently translated at 100.0% (276 of 276 strings)

Translated using Weblate (Spanish)

Currently translated at 47.4% (131 of 276 strings)

Co-authored-by: Kamborio <Kamborio15@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2023-11-18 10:35:59 +01:00
aab32a2c3b
Swapping Out 'Fred' for 'Jeanne' in Docs/API – Personal Peacekeeping 😊 (#1260) 2023-11-13 00:47:24 +01:00
e507b44ee9 Actually update to flask and werkzeug 2.3
The update was previously made by @azmeuk but
lost in a bad merge (see #1244 for details).
2023-11-11 12:22:30 +01:00
7c7efcc24c Document repository rules (closes #1245) 2023-11-11 11:15:14 +01:00
Éloi Rivard
ee7289f5d2
chore: update to flask 2.3 (#1244)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2023-11-06 17:53:58 +01:00
Éloi Rivard
c9a709953f
chore: support for wtforms 3.1 (#1248) 2023-10-18 23:47:21 +02:00
Éloi Rivard
eb7338c76c
chore: migrate from setup.cfg to pyproject.toml (#1243) 2023-10-08 01:56:25 +02:00
Baptiste Jonglez
e360ee7dfb Back to development: 6.1.2 2023-10-04 00:17:08 +02:00
Baptiste Jonglez
c74935c03c Preparing release 6.1.1 2023-10-04 00:16:07 +02:00
Baptiste Jonglez
38f3dd0d56 Prepare next release 2023-10-04 00:14:53 +02:00
zorun
1a2fa0476b
Currency hotfixes (#1240)
* hotfix: hardcode list of currencies to workaround failing API calls

See https://github.com/spiral-project/ihatemoney/issues/1232 for a discussion on currencies

* Temporarily disable some currency operations to prevent crashes

Here is what is disabled:

- setting or changing the default currency on an existing project

- adding or editing a bill with a currency that differs from the default
  currency of the project

---------

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2023-10-04 00:05:10 +02:00
Jojo144
c5c8dba631
Default owers when adding a bill (#1222)
* Remember last owers for next new bill

* Add a test for last_selected_payed_for
2023-10-03 20:20:58 +02:00