We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec0e02 commit b8b7fc6Copy full SHA for b8b7fc6
repo2docker/contentproviders/hydroshare.py
@@ -15,7 +15,9 @@ class Hydroshare(DoiProvider):
15
16
def _fetch_version(self, host):
17
"""Fetch resource modified date and convert to epoch"""
18
- json_response = self.session.get(host["version"].format(self.resource_id)).json()
+ json_response = self.session.get(
19
+ host["version"].format(self.resource_id)
20
+ ).json()
21
date = next(
22
item for item in json_response["dates"] if item["type"] == "modified"
23
)["start_date"]
setup.py
@@ -26,6 +26,7 @@ def finalize_options(self):
26
27
def run(self):
28
import json
29
+
30
import requests
31
32
resp = requests.get(self.url)
0 commit comments