Lukáš Kucharczyk lukas
  • Joined on 2020-07-29
lukas commented on issue lukas/timetracker#90 2026-05-12 13:09:22 +00:00
Add game status

Done in b22e185d47ff5c4eab748ae8107ff14f49435c76

lukas closed issue lukas/timetracker#91 2026-05-12 13:08:44 +00:00
Re-add custom buttons to Add/edit session screen
lukas commented on issue lukas/timetracker#91 2026-05-12 13:08:44 +00:00
Re-add custom buttons to Add/edit session screen

Done a while back

lukas deleted branch switch-to-react from lukas/timetracker 2026-05-12 13:04:36 +00:00
lukas closed pull request lukas/timetracker#67 2026-05-12 13:04:34 +00:00
Use React frontend
lukas commented on pull request lukas/timetracker#67 2026-05-12 13:04:34 +00:00
Use React frontend

Stale

lukas deleted branch svelte-integration from lukas/timetracker 2026-05-12 13:04:09 +00:00
lukas closed pull request lukas/timetracker#93 2026-05-12 13:03:56 +00:00
svelte-integration
lukas commented on pull request lukas/timetracker#93 2026-05-12 13:03:56 +00:00
svelte-integration

Stale

lukas deleted branch purchase-needs-price-update from lukas/timetracker 2026-05-12 13:03:34 +00:00
lukas pushed to main at lukas/timetracker 2026-05-12 13:03:34 +00:00
5003b739d3 PR review
4ba3ed555f Add info on statuses
e3b53cd4a9 Add needs_price_update field to Purchase model
Compare 3 commits »
lukas merged pull request lukas/timetracker#94 2026-05-12 13:03:34 +00:00
Add needs_price_update field to Purchase model
lukas pushed to purchase-needs-price-update at lukas/timetracker 2026-05-12 12:57:01 +00:00
5003b739d3 PR review
4ba3ed555f Add info on statuses
Compare 2 commits »
lukas commented on pull request lukas/timetracker#94 2026-05-12 12:56:38 +00:00
Add needs_price_update field to Purchase model

Done. Three changes applied: tasks.py:

  • Fix 3 — Renamed exchange_rate → rate throughout _get_exchange_rate() and the call site
  • Fix 5 — Changed DB lookup and API fetch attempt logs to…
lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

Inline comments on the diff.

lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

override_settings(CACHES=...) seems unnecessary since convert_prices() doesn't use caching. Could be removed if left from an earlier version.

lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

Exchange rate lookups use logger.info() — consider logger.debug() for these routine operations.

lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

_get_exchange_rate() returns a bare float (not an ExchangeRate object), but the variable name is misleading. Consider renaming to rate.

lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

The raw SQL UPDATE in this migration could lock the table on large datasets. Consider chunked updates if the table grows significantly.

lukas commented on pull request lukas/timetracker#94 2026-05-12 12:49:01 +00:00
Add needs_price_update field to Purchase model

This signal handler fetches the old instance from the DB on every update. The old code in save() also fetched from DB, so it's a wash query-wise — not strictly fewer queries. Just worth noting the trade-off.