redcap-tools / PyCap

REDCap in Python
http://redcap-tools.github.io/PyCap/
MIT License
169 stars 80 forks source link

coerce field and form arguments in export_records() #269

Closed ugGit closed 1 year ago

ugGit commented 1 year ago

Implements https://github.com/redcap-tools/PyCap/issues/262.

Change the expected argument type from List[str] to Union[List[str], str] and coerce if required the argument from str to List[str] before starting the processing.

ugGit commented 1 year ago

@pwildenhain anything for me left to do such that the CI passes?

codecov[bot] commented 1 year ago

Codecov Report

Merging #269 (90f2f9e) into master (a507d1a) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #269   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          568       572    +4     
=========================================
+ Hits           568       572    +4     
Impacted Files Coverage Δ
redcap/methods/records.py 100.00% <100.00%> (ø)