Skip to content

Clear images from Kobotoolbox project after fetching it #150

@nicopace

Description

@nicopace

From the last onboarding process, the partner said that there is a bug within KoboToolbox. Even though they set up the max filesize, they are not honoring it. I will file a separate issue for this.

Still, most of our partners will eventually face that will have more than one survey running (ie, a continuous cultural mapping) that will eat up all their storage.
From our side, it would be great if we can improve the KoboToolbox gc-scripts-hub script so that we can clear the attachments that were already saved in GC to save space within a KoboToolbox account.

This is the relevant code:

for submission in form_submissions:
if "_attachments" in submission:
skipped_attachments += _download_submission_attachments(
submission, db_table_name, attachment_root, headers
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions