towerops/lib
Graham McIntire 04daf191f7
fix(imports): handle DateTime microseconds and integer string floats
Fixed two import-related errors:

1. DateTime microseconds error when updating API token last_used_at:
   - Error: :utc_datetime expects microseconds to be empty
   - Fix: Use DateTime.truncate(:second) to remove microseconds
   - Location: lib/towerops/api_tokens.ex:179

2. Float parsing error for integer strings like "0":
   - Error: :erlang.binary_to_float("0") - not a textual representation of float
   - Fix: Use Float.parse/1 instead of String.to_float/1
   - Float.parse/1 handles both "0" and "0.0" correctly
   - Returns {float, remainder} on success, :error on failure
   - Location: lib/towerops/device_profiles/importer.ex:380

Both errors were causing profile imports to fail with crashes.
2026-01-18 11:23:43 -06:00
..
mix/tasks refactor: use API token auth for profile imports instead of session cookies 2026-01-18 09:30:21 -06:00
towerops fix(imports): handle DateTime microseconds and integer string floats 2026-01-18 11:23:43 -06:00
towerops_web fix(telemetry): use is_nil instead of not for Process.whereis check 2026-01-18 11:14:15 -06:00
towerops.ex init 2025-12-21 11:10:43 -06:00
towerops_web.ex separate out marketing layouts 2026-01-06 14:46:39 -06:00