lukas e3b53cd4a9
Django CI/CD / test (push) Successful in 22s
Django CI/CD / build-and-push (push) Has been skipped
Add needs_price_update field to Purchase model
Replace fragile price change detection in Purchase.save() with a
lazy dirty flag approach. A pre_save/post_save signal pair detects
price/currency changes without extra DB queries, and convert_prices()
uses the flag to determine which purchases need conversion.

- Add needs_price_update BooleanField with db_index
- Add pre_save signal to store old price/currency values
- Add post_save signal to set needs_price_update=True when price/currency changes
- Simplify Purchase.save() to remove DB reload + comparison logic
- Remove price_or_currency_differ_from() method
- Update convert_prices() to filter on needs_price_update flag
- Extract _get_exchange_rate() and _save_converted_price() helpers
- Add tests for the new behavior
2026-05-12 13:57:59 +02:00
2024-11-09 11:56:20 +01:00
2023-01-16 19:46:15 +01:00
2026-01-30 11:49:39 +01:00
2025-03-22 20:58:30 +01:00
2026-05-12 11:15:07 +02:00
2023-11-16 16:27:41 +01:00
2023-11-16 16:30:17 +01:00
2024-08-08 14:48:20 +02:00
2024-08-08 14:49:09 +02:00
2023-01-20 17:15:53 +01:00
2024-11-09 11:56:20 +01:00
2023-01-20 17:15:53 +01:00
2023-11-16 16:27:41 +01:00
2026-01-30 11:49:39 +01:00
2026-01-27 21:30:04 +01:00
2024-08-11 17:24:26 +02:00
2026-02-17 22:14:16 +01:00
2026-01-29 12:56:45 +01:00

Timetracker

A simple game catalogue and play session tracker.

Development

The project uses pyenv to manage installed Python versions. If you have pyenv installed, you can simply run:

make init

This will make sure the correct Python version is installed, and it will install all dependencies using poetry. Afterwards, you can start the development server using make dev.

S
Description
No description provided
Readme 11 MiB
2026-05-12 16:36:46 +00:00
Languages
Python 43.7%
CSS 28.1%
HTML 24%
JavaScript 3.3%
Dockerfile 0.4%
Other 0.5%