Skip to content

Commit

Permalink
#139: Code formatting changes made by Black
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Aug 21, 2020
1 parent 39ab528 commit 0888686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

log = logging.getLogger()


class Config(object):
def __init__(self):
config_path = Path(__file__).parent.parent / "config.json"
Expand Down Expand Up @@ -77,11 +78,12 @@ def get_icat_properties(self):
requires the client object to be authenticated which may not always be the case
when requesting these properties, hence a HTTP request is sent as an alternative
"""
properties_url = f"{config.get_icat_url()}/icat/properties"
properties_url = f"{config.get_icat_url()}/icat/properties"
r = requests.request("GET", properties_url, verify=config.get_icat_check_cert())
icat_properties = r.json()
log.debug("ICAT Properties: %s", icat_properties)

return icat_properties


config = Config()
1 change: 0 additions & 1 deletion common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ def get_entity_with_filters(client, table_name, filters):
filter_handler.add_filters(filters)
merge_limit_skip_filters(filter_handler)
filter_handler.apply_filters(query)


data = execute_icat_query(client, query, True)

Expand Down

0 comments on commit 0888686

Please sign in to comment.