Skip to content

Commit

Permalink
Merge pull request #108 from BritishGeologicalSurvey/hide-ags-log
Browse files Browse the repository at this point in the history
Hide ags log
  • Loading branch information
KoalaGeo authored Apr 26, 2023
2 parents 86fda20 + 0710810 commit a0ee195
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def custom_openapi():
return app.openapi_schema
openapi_schema = get_openapi(
title="pyagsapi - AGS File Utilities Tools and API",
version="4.5.1",
version="4.5.2",
description=("The API performs schema validation, data validation and conversion of your AGS files. "
"It also exports a graphical log from AGS data held by NGDC. "
"Schema validation and conversion uses https://gitlab.com/ags-data-format-wg/ags-python-library"),
Expand Down
9 changes: 5 additions & 4 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ def prepare_validation_response(request, data):


@router.get("/ags_log/",
tags=["ags_log"],
# tags=["ags_log"],
# summary="Generate Graphical Log",
# description="Generate a graphical log (.pdf) from AGS data held by the National Geoscience Data Centre.",
include_in_schema=False,
response_class=Response,
responses=pdf_responses,
summary="Generate Graphical Log",
description="Generate a graphical log (.pdf) from AGS data held by the National Geoscience Data Centre.")
responses=pdf_responses)
def get_ags_log(bgs_loca_id: int = ags_log_query,
response_type: ResponseType = response_type_query):
url = BOREHOLE_VIEWER_URL.format(bgs_loca_id=bgs_loca_id)
Expand Down
2 changes: 1 addition & 1 deletion app/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
<hr>
<br>
<div>
Powered by <a title="pyagsapi" href="https://github.com/BritishGeologicalSurvey/pyagsapi">pyagsapi</a>. pyagsapi was created by and is maintained by the <a href="https://www.bgs.ac.uk/">British Geological Survey</a> and is distributed under the <a title="license" href="https://github.com/BritishGeologicalSurvey/pyagsapi/blob/main/LICENSE">LGPL v3.0 licence</a>, code is available on <a title="github" href="https://github.com/BritishGeologicalSurvey/pyagsapi">GitHub</a>. <a title="agspython" href="https://github.com/BritishGeologicalSurvey/pyagsapi">pyagsapi</a> uses the <a href="https://gitlab.com/ags-data-format-wg/ags-python-library.">Official AGS Python Library</a>.
Powered by <a title="pyagsapi" href="https://github.com/BritishGeologicalSurvey/pyagsapi">pyagsapi 4.5.2</a>. pyagsapi was created by and is maintained by the <a href="https://www.bgs.ac.uk/">British Geological Survey</a> and is distributed under the <a title="license" href="https://github.com/BritishGeologicalSurvey/pyagsapi/blob/main/LICENSE">LGPL v3.0 licence</a>, code is available on <a title="github" href="https://github.com/BritishGeologicalSurvey/pyagsapi">GitHub</a>. <a title="agspython" href="https://github.com/BritishGeologicalSurvey/pyagsapi">pyagsapi</a> uses the <a href="https://gitlab.com/ags-data-format-wg/ags-python-library.">Official AGS Python Library</a>.
</div>
</main>
<footer>
Expand Down

0 comments on commit a0ee195

Please sign in to comment.