Skip to content

[FIX] - Decode bytestring for version from redcap#250

Merged
DESm1th merged 1 commit intoTIGRLab:masterfrom
jerdra:redcap_byte2str
Dec 30, 2019
Merged

[FIX] - Decode bytestring for version from redcap#250
DESm1th merged 1 commit intoTIGRLab:masterfrom
jerdra:redcap_byte2str

Conversation

@jerdra
Copy link
Copy Markdown
Contributor

@jerdra jerdra commented Dec 30, 2019

Issue being fixed

Sometimes, when pulling from REDCAP, python interprets the content as bytestring rather than string. The database doesn't decode this automatically resulting in errors due to character length. This has been an issue for SENDEP for which redcap records have never pulled in correctly because the redcap_version was always read in as a bytestring

Solution

Run a decode to UTF-8 on the redcap version

Copy link
Copy Markdown
Contributor

@gabiherman gabiherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch!

@DESm1th DESm1th merged commit f230912 into TIGRLab:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants