Automation · 2026
Change log for an attendance system with no audit trail
The company's cloud attendance system had no history page: anyone with access could edit a shift, backdate a leave or delete a punch, and nobody could see it afterwards. A read-only log now checks it every 15 minutes and records every change, field by field, with the operator who made it.
- Client
- A transport company, Saudi Arabia
- Role
- Design, build and running support
- Stack
- Python · Requests · Flask · JSON store · REST API (JWT) · SHA-256 hashing
Updated 29 Nov 2026

The problem
Salaries are paid from attendance. The attendance system kept only the current state of each record: no audit page and no history of who changed what. When a driver's late arrival disappeared, a shift's grace period grew from 10 to 30 minutes, or a leave appeared for last week, there was no way to tell when it happened or who did it, and month-end disputes came down to one person's word against another's.
What I built
A small Python module inside the operations dashboard that uses the attendance system's own API, the one its web app calls, read-only. Every 15 minutes it takes a snapshot of 16 areas (employees, departments, shifts, shift assignments, leave types, employee leaves, holidays, weekends, devices, device groups, geofences, operators, operator types, permissions, report settings and punches), compares it with the previous one and logs every record added, changed or removed, with each changed field shown old → new, the operator who made the change and the system's own change time where it keeps one. On the first run it records a baseline and seeds the log with the changes the system still remembers from the last 90 days. Punches are handled carefully: normal fingerprint, face and mobile punches are not logged, only punches typed in by hand, edited or deleted. Date-window areas ignore records that merely scroll in or out of the window. Salary, bank account and ID card numbers are stored only as hashes, so the log shows that they changed but never the value. A dashboard page filters by date, area, action, operator or free text, and can raise an alert when new changes arrive.
- Read-only connection through the attendance system's own API, no browser
- Snapshot of 16 areas every 15 minutes, compared with the previous snapshot
- Added / changed / removed per record, each field old → new, with operator and change time
- Baseline on first run, seeded with the last 90 days of changes the system remembers
- Punch rules: hand-typed, edited and deleted punches logged; normal device punches ignored
- Date windows for shift assignments, leaves and punches, without false 'removed' entries
- Salary, bank account and ID numbers kept as hashes and shown as (hidden)
- Dashboard page: filter by date, area, action, operator and text; check now; optional alert
Outcome
Every change to attendance, shifts and leaves now has a time and a name next to it. A deleted punch or a quietly widened grace period shows up in the log within 15 minutes, and month-end questions are answered from the record instead of from memory.
Screens
Click any screen to enlarge it. Arrow keys move between them.
What the change log does: 15-minute snapshots, old → new per field, hidden private fields (illustration) The change log: every added, changed and removed record with what changed and who changed it (demo data) Filtered to punches: a hand-typed punch and a deleted one; the system does not record who edits punches (demo data)
Want this for your company?
The engagement is described on the Business process automation service page: who it is for, what you get, how it runs, and the questions I get asked.
Have a process like this?
Send me the thing your team does by hand every week. I will tell you honestly whether it is worth automating, even when the answer is no.
