gdcc / pyDataverse

Python module for Dataverse Software (dataverse.org).
http://pydataverse.readthedocs.io/
MIT License
63 stars 41 forks source link

Fix data access and redirects #182

Closed JR-1991 closed 2 months ago

JR-1991 commented 2 months ago

Overview

This pull request fixes the get_datafile endpoint and allows redirects upon requests, which is happening in the case of data access. Before this PR, the get_datafile method used the persistent ID access URL if pid=False and vice versa. This has been fixed by simply switching the if statements. In addition, tests have been added to pyDataverse to check if data access is working.

TLDR