owntracks / recorder

Store and access data published by OwnTracks apps
Other
907 stars 123 forks source link

Make putrec hook also decide whether `last` and websocket update #459

Closed nickswalker closed 7 months ago

nickswalker commented 8 months ago

Current hook just governs whether the record is written, but this means that the last file and the live websocket would still be updated with data that the user decided to filter. Now we use the hook to skip those steps as well. Update HOOKS.md to note the functionality change

This is a simple implementation of the change, but I'd also consider changing the hook name internally and refactoring a bit further to avoid putting the lua check everywhere.

Closes #458

jpmens commented 7 months ago

Merged, thank you!