Baptiste
9df4f0a3de
Translated using Weblate (French)
...
Currently translated at 99.6% (272 of 273 strings)
Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-07-14 10:00:40 +02:00
Baptiste Jonglez
9f89cce097
Regenerate all translation files
2023-07-13 18:13:42 +02:00
Baptiste Jonglez
bff44ae415
Avoid HTML markup in translation strings
2023-07-13 18:13:42 +02:00
Glandos
7d26870975
Translated using Weblate (French)
...
Currently translated at 100.0% (255 of 255 strings)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-07-13 18:11:49 +02:00
Glandos
f2ac083396
Translated using Weblate (French)
...
Currently translated at 100.0% (255 of 255 strings)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-07-13 16:57:32 +02:00
Baptiste Jonglez
76ab5b4ced
Add Catalan, Czech, Spanish, Persian, Hebrew, Hungarian, Kannada, Serbian, Telugu, Thai to default languages
2023-07-13 00:15:34 +02:00
Sebastian Lay
c7df581014
Translated using Weblate (German)
...
Currently translated at 100.0% (255 of 255 strings)
Co-authored-by: Sebastian Lay <mail@sebastian-lay.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money
2023-07-11 23:17:22 +02:00
Egor Dubenetskiy
e00cd8ad1c
Translated using Weblate (Russian)
...
Currently translated at 100.0% (255 of 255 strings)
Co-authored-by: Egor Dubenetskiy <egor@banka.space>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2023-05-19 15:47:55 +02:00
MurkBRA
9f8eb0af8b
Translated using Weblate (Portuguese)
...
Currently translated at 99.6% (254 of 255 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.4% (251 of 255 strings)
Co-authored-by: MurkBRA <anjo1077@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pt/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pt_BR/
Translation: I Hate Money/I Hate Money
2023-05-19 15:47:55 +02:00
Gergely Kocsis
f009533e82
Translated using Weblate (Hungarian)
...
Currently translated at 27.8% (71 of 255 strings)
Co-authored-by: Gergely Kocsis <koger23@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/hu/
Translation: I Hate Money/I Hate Money
2023-05-19 15:47:55 +02:00
Sai Mohammad-Hossein Emami
6222486301
Translated using Weblate (Persian)
...
Currently translated at 20.3% (52 of 255 strings)
Co-authored-by: Sai Mohammad-Hossein Emami <emami@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fa/
Translation: I Hate Money/I Hate Money
2023-05-19 15:47:55 +02:00
Kristoffer Grundström
3666c248f2
Translated using Weblate (Swedish)
...
Currently translated at 94.5% (241 of 255 strings)
Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2023-02-18 15:53:43 +01:00
Glandos
d5bc85cfb6
workaround for https://github.com/kvesteri/sqlalchemy-continuum/issues/264
2023-02-18 15:47:08 +01:00
Baptiste Jonglez
b27e9915a7
Fix spanish translation messing with string interpolation
2023-02-03 20:35:37 +01:00
Baptiste Jonglez
ade03b77f1
Update translation catalog
2023-02-03 20:35:37 +01:00
Baptiste Jonglez
e241104815
Remove useless translation
2023-02-03 20:35:37 +01:00
Baptiste Jonglez
72f252b9f9
Remove f-string based translations
...
F-strings are a bad idea for translations, because they cause Babel to
crash when collecting strings to translate:
https://github.com/python-babel/babel/issues/715
But even if we replaced f-strings with new-style string interpolation such
as `_("{foo}").format(foo=foo)`, it's still a bad idea, because a wrong
translation can crash Ihatemoney at runtime with a KeyError.
Instead, we must really use old-style python formatting since they are
well supported in Babel. Wrong translations that mess with string
interpolations will cause Babel to give an error when compiling
translation files, which is exactly what we want.
2023-02-03 20:35:37 +01:00
Baptiste Jonglez
081f8dcf49
Allow bills with an amount of zero
...
Bills with an amount of zero may be useful to remember that a transaction
happened on a specific date, while the amount doesn't matter.
I use that with per-year projects when a reimbursement happens in year N
but is relative to year N-1: I record it with an amount of zero in the
project of year N, and with the real amount in the project of year N-1.
Besides, it's already possible to create such bills: while "0" is refused,
"0.0" is accepted. There are no visible issues with this kind of bills.
2023-02-03 20:35:15 +01:00
Baptiste Jonglez
e185a157fb
tests: Avoid plain "assert" and use unittest helper functions
2023-01-31 18:36:30 +01:00
Glandos
45035f2ea3
Translated using Weblate (French)
...
Currently translated at 100.0% (265 of 265 strings)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2023-01-30 23:45:10 +01:00
Glandos
2e07c369f2
black format
2023-01-30 23:39:15 +01:00
Glandos
0039fdaf77
add compatibility for flask-babel 2 and 3
2023-01-30 23:39:15 +01:00
Glandos
113e010dc5
update locale selector definition
2023-01-30 23:39:15 +01:00
Glandos
d477b41d9a
add test case
2023-01-29 23:03:14 +01:00
Glandos
3a984ee206
fix test after code reformatting
2023-01-29 23:03:14 +01:00
43289b8dd2
Fix project deletion in the dashboard. Fixes #1094
...
This was broken due to changes introduced to make project deletion more
secure. Rather than doing some complicated if branches, I decided this
dashboard stuff is probably better handled with separate routes instead.
So I've reintroduced a way to delete the projects without specifying the
project code (otherwise it's not possible for admins to do it).
2023-01-29 23:03:14 +01:00
ANN_MLP
97a0aea2ba
Translated using Weblate (Hungarian)
...
Currently translated at 16.2% (43 of 265 strings)
Co-authored-by: ANN_MLP <ANN_MLP@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/hu/
Translation: I Hate Money/I Hate Money
2023-01-28 22:25:26 +01:00
itgergo
983053b1fb
Added translation using Weblate (Hungarian)
...
Co-authored-by: itgergo <itgergo@pm.me>
2023-01-28 22:25:26 +01:00
ssantos
3b6a748336
Translated using Weblate (Portuguese)
...
Currently translated at 99.2% (263 of 265 strings)
Co-authored-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pt/
Translation: I Hate Money/I Hate Money
2023-01-28 22:25:26 +01:00
Raanan Katz
ab6806f2d9
Translated using Weblate (Hebrew)
...
Currently translated at 49.0% (130 of 265 strings)
Co-authored-by: Raanan Katz <raakatz97@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/he/
Translation: I Hate Money/I Hate Money
2023-01-28 22:25:26 +01:00
Moshi Moshi
d39d942b50
Translated using Weblate (Czech)
...
Currently translated at 21.5% (57 of 265 strings)
Co-authored-by: Moshi Moshi <ifeeltiredboss@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2023-01-28 22:25:26 +01:00
Oğuz Ersen
7ee3086e62
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (265 of 265 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-01-28 22:25:26 +01:00
Phạm Nguyễn Hoàng
0bf79441ad
Added translation using Weblate (Vietnamese)
...
Co-authored-by: Phạm Nguyễn Hoàng <pnhoang96@gmail.com>
2023-01-28 22:25:26 +01:00
Sabtag3
933b9b7fba
Translated using Weblate (Spanish)
...
Currently translated at 50.9% (135 of 265 strings)
Translated using Weblate (Spanish)
Currently translated at 49.4% (131 of 265 strings)
Co-authored-by: Sabtag3 <dioni1984@yahoo.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2023-01-28 22:25:26 +01:00
Glandos
923a7c41c1
black formatting, since last black changed
2023-01-28 17:06:33 +01:00
Glandos
e03338e6a8
fix tests, broken by #1096
...
Now the "danger" strings appears nearly everywhere, but the test looks for a flash message, thus "alert-danger"
2023-01-28 17:06:33 +01:00
Glandos
f90db8381d
- factor confirm deletion between project and bill
...
- better look for bill deletion confirm, using an absolute positionning in the action cell
2023-01-28 17:06:33 +01:00
cbrosnan
4bef5ad922
added confirmation for expense deletion ( #1096 )
2022-12-11 21:19:31 +01:00
7714ed9198
Favicon update. ( #1102 )
...
Original work by @asya99 in #1024 . Thanks for this :-)
2022-12-11 12:44:47 +01:00
Glandos
9a8cc16a0b
unused import
2022-12-10 18:22:41 +01:00
Glandos
9ccfc2981d
side-effect: add autofocus on admin field
2022-12-10 18:22:41 +01:00
Glandos
19f5f07bfb
don't display content block on rate limit
2022-12-10 18:22:41 +01:00
Glandos
75ed637911
short date, clearer output
2022-12-10 18:22:41 +01:00
Glandos
4d7e966f7f
fix tests
2022-12-10 18:22:41 +01:00
Glandos
d834394a44
ensure current_limit exist before displaying any message based on it
2022-12-10 18:22:41 +01:00
Glandos
63fba6be4c
force in memory storage to remove warning
...
we don't need persistent storage for now
2022-12-10 18:22:41 +01:00
Glandos
e7ab3c1a95
Implement rate limiting with Flask-Limiter
...
Fixes #1054
2022-12-10 18:22:41 +01:00
Glandos
24614b2c1d
format doc
2022-10-22 23:02:27 +02:00
Glandos
d97123bf6b
reformat
2022-10-22 23:02:27 +02:00
Glandos
dc40c8fc14
use a dict for project list
...
this avoid finding duplicates, and we only need id -> name
also, use a common function to avoid duplicate code
fix #1081
2022-10-22 23:02:27 +02:00
Glandos
cc18986b76
add test for multiple join
2022-10-22 23:02:27 +02:00
Sharan J
a352214033
Translated using Weblate (Telugu)
...
Currently translated at 28.3% (75 of 265 strings)
Added translation using Weblate (Telugu)
Co-authored-by: Sharan J <sharanjs1999@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/te/
Translation: I Hate Money/I Hate Money
2022-10-09 22:20:32 +02:00
Andrzej Ochodek
ac2c9ffb73
Translated using Weblate (Polish)
...
Currently translated at 100.0% (265 of 265 strings)
Co-authored-by: Andrzej Ochodek <andrzej.ochodek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2022-09-30 22:30:10 +02:00
Dmytro Onopa
f63611212f
Translated using Weblate (Ukrainian)
...
Currently translated at 24.1% (64 of 265 strings)
Co-authored-by: Dmytro Onopa <dmytro.onopa@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/uk/
Translation: I Hate Money/I Hate Money
2022-09-30 22:30:10 +02:00
Maite Guix
26b9262ce1
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (265 of 265 strings)
Translated using Weblate (Catalan)
Currently translated at 100.0% (265 of 265 strings)
Co-authored-by: Maite Guix <maite.guix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ca/
Translation: I Hate Money/I Hate Money
2022-09-12 22:52:58 +02:00
Maite Guix
39bf774941
Translated using Weblate (Catalan)
...
Currently translated at 100.0% (265 of 265 strings)
Translated using Weblate (Catalan)
Currently translated at 74.3% (197 of 265 strings)
Translated using Weblate (Catalan)
Currently translated at 69.8% (185 of 265 strings)
Added translation using Weblate (Catalan)
Co-authored-by: Maite Guix <maite.guix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ca/
Translation: I Hate Money/I Hate Money
2022-09-09 23:09:14 +02:00
Glandos
f98b126e58
Captcha value should be case insensitive on both side (form and l10n values)
...
Fixes #1060
2022-09-09 22:44:27 +02:00
Glandos
8695b899db
Allow more elements with CSP ( #1057 )
...
Ultimately, we should get rid of inline style
For image in data: scheme, I think it's OK for now
Fixes #1055
2022-08-28 11:49:29 +02:00
Glandos
08defaea8f
use double quotes so that value that contains single quote is not a syntax error
2022-08-28 11:34:38 +02:00
z.liu
fc0a73e8b2
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 95.8% (254 of 265 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 95.4% (253 of 265 strings)
Co-authored-by: z.liu <zwliu07@live.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2022-07-21 22:40:10 +02:00
Glandos
78af70b2c1
Add url from request
2022-07-16 23:29:35 +02:00
Glandos
667b65b9cc
Surround email in case of error ( #1044 )
...
fix https://huntr.dev/bounties/441cc44c-6837-46ec-9b30-52455aa71a2f/
2022-07-16 23:26:51 +02:00
Matteo Piotto
e9b7426a98
Translated using Weblate (Italian)
...
Currently translated at 76.6% (203 of 265 strings)
Co-authored-by: Matteo Piotto <piotto@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2022-07-14 15:55:18 +02:00
Glandos
31fef4f4d6
Fix CSRF on logout ( #1040 )
...
fix for https://huntr.dev/bounties/a3045614-1125-4901-bb7a-9d51be4beeed/
2022-07-14 15:45:32 +02:00
Shafiq Azeez
c164a1fbd2
Translated using Weblate (Urdu)
...
Currently translated at 4.5% (12 of 265 strings)
Added translation using Weblate (Urdu)
Co-authored-by: Shafiq Azeez <fubukishirouk@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ur/
Translation: I Hate Money/I Hate Money
2022-07-10 16:16:06 +02:00
Glandos
3a73c26e6d
fix flake8
2022-07-10 16:07:19 +02:00
Glandos
ff08df043a
change error format to be compatible with py < 3.10
2022-07-10 16:07:19 +02:00
Glandos
9341dc292e
fix #1037
...
Add a warning, so adapt the test to capture it
2022-07-10 16:07:19 +02:00
Glandos
7a55fb23fa
add test to show the failure
2022-07-10 16:07:19 +02:00
Jonny Järnmark
b32abadd05
Translated using Weblate (Swedish)
...
Currently translated at 69.0% (183 of 265 strings)
Co-authored-by: Jonny Järnmark <jarnmark@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
Wilfredo Gomez Martinez
3d8f91af35
Translated using Weblate (Spanish)
...
Currently translated at 36.9% (98 of 265 strings)
Co-authored-by: Wilfredo Gomez Martinez <wilfredo.gomezmartinez@wallawalla.edu>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
МАН69К
b3a87ad1e8
Translated using Weblate (Russian)
...
Currently translated at 82.2% (218 of 265 strings)
Co-authored-by: МАН69К <weblate@mah69k.net>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2022-06-26 16:19:02 +02:00
G Pery
9c2c4bf453
Translated using Weblate (Hebrew)
...
Currently translated at 24.1% (64 of 265 strings)
Added translation using Weblate (Hebrew)
Co-authored-by: G Pery <gpery+weblate@proton.me>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/he/
Translation: I Hate Money/I Hate Money
2022-05-29 15:01:05 +02:00
Glandos
042b33aeb2
escape csv formulae
...
This is only needed for unsecure spreadsheet applications (hi Google Docs and MS Excel) that load formulae by default.
See https://owasp.org/www-community/attacks/CSV_Injection for some mitigation explanation. This is not complete, but it should be OK for now.
2022-05-14 16:16:12 +02:00
Glandos
9b4834ff55
remove unused imports
2022-05-14 16:09:14 +02:00
936ea0ea8e
Almet/qrcode ( #1000 )
...
Add a QRCode utility to join the project.
2022-05-11 11:20:15 +02:00
erwan-lacoudre
0d511e03d8
Add a Cancel Button when editing a bill ( #1013 )
...
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-05-08 15:37:28 +02:00
Andrzej Ochodek
15a81be0c9
Translated using Weblate (Polish)
...
Currently translated at 98.4% (261 of 265 strings)
Co-authored-by: Andrzej Ochodek <andrzej.ochodek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2022-04-30 08:33:04 +02:00
Hasidul Islam
ace8e9afdb
Translated using Weblate (Bengali)
...
Currently translated at 10.9% (29 of 265 strings)
Added translation using Weblate (Bengali)
Co-authored-by: Hasidul Islam <ihasidul@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/bn/
Translation: I Hate Money/I Hate Money
2022-04-23 18:05:01 +02:00
Santiago José Gutiérrez Llanos
f086cb7aa4
Translated using Weblate (Indonesian)
...
Currently translated at 96.2% (255 of 265 strings)
Translated using Weblate (Spanish (Latin America))
Currently translated at 100.0% (265 of 265 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 93.9% (249 of 265 strings)
Co-authored-by: Santiago José Gutiérrez Llanos <gutierrezapata17@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es_419/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2022-04-23 18:05:01 +02:00
Glandos
5f4f69bc6c
Convert MAIL_DEFAULT_SENDER to a string ( #1007 )
...
Fixes #1005
2022-04-07 21:15:48 +02:00
Baptiste Jonglez
0dede02133
Add missing __init__.py that may explain why CI fails
2022-04-03 00:28:08 +02:00
Glandos
eaf059fe91
Hide "each" amount when there's only one recipient ( #1008 )
...
Fixes #1002
2022-03-24 17:31:50 +01:00
Weblate (bot)
22ac13a2e3
Translated using Weblate (Portuguese (Brazil)) ( #1004 )
...
Currently translated at 82.6% (219 of 265 strings)
Co-authored-by: Vinícius A. L. Souza <me@viniciusals.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pt_BR/
Translation: I Hate Money/I Hate Money
Co-authored-by: Vinícius A. L. Souza <me@viniciusals.com>
2022-03-13 19:45:46 +01:00
Glandos
a71f154354
Purge project history on deletion
2022-03-05 17:12:59 +01:00
Allan Nordhøy
09e583b49e
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 75.0% (199 of 265 strings)
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2022-02-28 22:28:45 +01:00
Glandos
e355894cee
Check for too high values ( #989 )
...
* check for too high values
see https://github.com/python-babel/babel/issues/821
fix #957
* black & isort
* add API test
2022-02-02 10:09:49 +01:00
Glandos
1bea93f8a5
upgrade sqlalchemy-continuum
...
1.3.10 is needed to remove the patch
1.3.12 is needed for SQLAlchemy 1.4
2022-02-01 23:02:49 +01:00
Gianluca De Cola
a14c7c5aaf
Add a tooltip to advertize the computation trick on bills.
2022-01-31 22:07:47 +01:00
Glandos
07e1eac0a9
Null amount validator was broken ( #990 )
2022-01-30 16:33:18 +01:00
Peter Maksymowsky
a5452ccee5
Display admin email in error message for password reminder ( #965 )
...
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:33:54 +01:00
7c3ced06f8
Some small cleanups ( #976 )
...
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:26:22 +01:00
Weblate (bot)
ed6676485a
Translations update from Hosted Weblate ( #987 )
...
Co-authored-by: yzqzss <yzqzss@yandex.com>
2022-01-25 22:34:00 +01:00
Glandos
1a90e4cdd8
Fix broken captcha validation when field is empty and we use WTForms 3 ( #988 )
2022-01-25 22:26:56 +01:00
Weblate (bot)
8fe7bbdf4c
Translated using Weblate (Polish) ( #983 )
...
Currently translated at 80.3% (213 of 265 strings)
Co-authored-by: Piotr <promantix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
Co-authored-by: Piotr <promantix@gmail.com>
2022-01-23 19:43:45 +01:00
Glandos
40ce32d9fa
Support WTForms 3 ( #916 )
...
* Support WTForms 3
* default value to None for WTForm backward compatibility
* switch back to empty string as default
WTForm backward compatibility needs that
* format
2022-01-23 19:43:32 +01:00
Glandos
023ec71536
[Performance] Get weight sum along with bills to scale ( #949 )
...
* get weight sum along with bills to scale
otherwise, we need to get the weight sum for each displayed bill.
Here, we are much more scalable
* add test
* format
* remove unused import
* oops, restore pagination to 100
* add comments
* format
* rename method to make it clearer
And also, make it static, since it doesn't rely on instance.
* improve comments and naming
* improve naming
* missing article
2022-01-22 00:13:07 +01:00
zorun
c8cbe43ee2
Display monthly statistics for the range of months where the project was active ( #885 )
...
* Change the way we import datetime
This makes it easier to use datetime.date later.
* Display monthly statistics for the range of months where the project was active
Currently, we display a hard-coded "one year" range of monthly statistics
starting from today. This generally is not the intended behaviour: for
instance, on an archived project, the bills might all be older than one
year, so the table only displays months without any operation.
Instead, display all months between the first and last bills. There might
be empty months in the middle, but that's intended, because we want all
months to be consecutive.
If there are no bills, simply display an empty table.
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2022-01-18 14:32:43 +01:00
Baptiste Jonglez
0c8b8e9374
Remove old python 2 compatibility code
2022-01-14 19:45:02 +01:00
Salamandar
6519223b45
Fix : use url_for in showcase template. ( #974 )
2021-12-22 19:25:55 +01:00