Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 21, 2024
1 parent aec0e02 commit b8b7fc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repo2docker/contentproviders/hydroshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class Hydroshare(DoiProvider):

def _fetch_version(self, host):
"""Fetch resource modified date and convert to epoch"""
json_response = self.session.get(host["version"].format(self.resource_id)).json()
json_response = self.session.get(
host["version"].format(self.resource_id)
).json()
date = next(
item for item in json_response["dates"] if item["type"] == "modified"
)["start_date"]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def finalize_options(self):

def run(self):
import json

import requests

resp = requests.get(self.url)
Expand Down

0 comments on commit b8b7fc6

Please sign in to comment.