We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f9d50 commit 8ece981Copy full SHA for 8ece981
1 file changed
src/mindlogger_data_export/outputs.py
@@ -422,6 +422,7 @@ def _prepare_activity_columns(
422
{
423
col: self._normalize_column_name(f"{activity_prefix}_{col}")
424
for col in df.columns
425
+ if not col.endswith("")
426
}
427
)
428
@@ -617,7 +618,8 @@ def _format(self, data: MindloggerData) -> list[NamedOutput]:
617
618
# Format each activity for REDCap
619
outputs = []
620
for wide_output in wide_outputs:
- activity_name = wide_output.name
621
+ activity_name = wide_output.name.translate({32: None, 45: None, 43: None})
622
+ """Output name without spaces, minuses, or pluses."""
623
formatted_df = self._format_activity(wide_output.output, activity_name)
624
outputs.append(NamedOutput(f"{activity_name}_redcap", formatted_df))
625
0 commit comments