Bugfix: Punches of the same second are imported once
Description
Horilla stores fractions of a second, but adsum records one punch of an action per second and employee. Two activities
of an employee whose clock-ins fell into the same second (double clicks) made the second write fail with a unique
violation. Of two clock-ins in the same second, and likewise of two clock-outs, only the first is now imported (by the
fraction of a second, then by the lower activity id). The later one is skipped and reported with the warning
duplicate, whose field names the activity of the first. A clock-in and a clock-out in the same second
stay. An open activity no longer counts activities within its own second as later ones, and activities that share a
second no longer count as overlapping.
Impact
The punches stage completes on such data. A later activity of a double click whose clock-out would then follow a
clock-out is refused by the sequence of punches and reported as target.