Skip to content

Commit

Permalink
fix imports after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-pol committed Feb 16, 2024
1 parent 080f662 commit d69b714
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/datastation/dataverse/banner_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import requests

from datastation.common.utils import raise_for_status


class BannerApi:

Expand Down
2 changes: 1 addition & 1 deletion src/datastation/dataverse/dataverse_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json


from datastation.common.utils import print_dry_run_message
from datastation.common.utils import print_dry_run_message, raise_for_status


class DataverseApi:
Expand Down
2 changes: 1 addition & 1 deletion src/datastation/dataverse/file_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests

from datastation.common.utils import print_dry_run_message
from datastation.common.utils import print_dry_run_message, raise_for_status


class FileApi:
Expand Down
2 changes: 2 additions & 0 deletions src/datastation/dataverse/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import requests

from datastation.common.utils import raise_for_status


class MetricsApi:
def __init__(self, server_url: str):
Expand Down
2 changes: 1 addition & 1 deletion src/datastation/dataverse/search_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

from datastation.common.utils import print_dry_run_message
from datastation.common.utils import print_dry_run_message, raise_for_status


class SearchApi:
Expand Down
2 changes: 2 additions & 0 deletions src/datastation/dv_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from lxml import etree

from datastation.common.utils import raise_for_status


# Thin 'client' functions for http API on the dataverse service, not using a API lib, just the requests lib
# could be placed in a class that also keeps hold of the url and token that we initialise once!
Expand Down

0 comments on commit d69b714

Please sign in to comment.