Attendances and votes files are not parsed correctly #1

Closed
opened 2026-10-31 23:24:33 +00:00 by aniram · 2 comments
Owner

When parsing the votes file CD250527.dbf and attendance file CD260202.dbf the last digit of the column "NUMVOT" gets attached to next column, the member's name. In case of obstruction("OBSTRUCAO") the last letter, "O", gets also added to the next column, the party.

When parsing the votes file CD250527.dbf and attendance file CD260202.dbf the last digit of the column "NUMVOT" gets attached to next column, the member's name. In case of obstruction("OBSTRUCAO") the last letter, "O", gets also added to the next column, the party.
Author
Owner

The problem was the deletion flag which happens to be first byte of every record. The field count does not include the deletion flag. So if a field count is 11 bytes, the 11 bytes start AFTER the deletion flag.

The problem was the deletion flag which happens to be first byte of every record. The field count does not include the deletion flag. So if a field count is 11 bytes, the 11 bytes start **AFTER** the deletion flag.
Author
Owner

Fixed here 434a572f12

Fixed here https://git.marinabsa.com/overdrives/go-dbf5/commit/434a572f12550ceda25e6bdd6f80f9e5c8052ead
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/go-dbf5#1
No description provided.