Skip to content

Commit

Permalink
Merge branch 'development' into development-fix-5234
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Jul 27, 2023
2 parents 328288f + cec9dcd commit 1a997bf
Show file tree
Hide file tree
Showing 41 changed files with 160 additions and 624 deletions.
7 changes: 2 additions & 5 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ def nrep_string_expr(s: str, m: int = 64) -> str:

if app.config.get('LOG_API_CALL_DURATION', False):
endtime = timer()
callduration = round(endtime - begintime, 3)
print("API call {} with params {}: duration {} seconds".format(fn,
params,
str(callduration)),
file=sys.stderr)
callduration = round((endtime - begintime) * 1000)
print("DEBUG: {:4d}ms api_{} {}".format(callduration, fn, params), file=sys.stderr)

return json.loads(result)

Expand Down
5 changes: 2 additions & 3 deletions datarequest/templates/datarequest/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
{% block title %}{{ super() }} ‐ Datarequests overview{% endblock title %}

{% block style %}
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/fontawesome-free-6.0.0/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('datarequest_bp.static', filename='css/index.css') }}">
{% endblock style %}

Expand All @@ -14,7 +13,7 @@
dacrequests: '{{ dacrequests }}'
}
</script>
<script src="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.js') }}"></script>
<script src="{{ url_for('datarequest_bp.static', filename='js/index.js') }}"></script>
{% endblock scripts %}

Expand Down
4 changes: 2 additions & 2 deletions deposit/templates/deposit/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block title %}{{ super() }} &dash; Deposit &dash; Add data{% endblock title %}

{% block style %}
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('deposit_bp.static', filename='lib/stepper/bs-stepper.custom.css') }}">
<link rel="stylesheet" href="{{ url_for('deposit_bp.static', filename='css/deposit.css') }}">
{% endblock style %}
Expand All @@ -13,7 +13,7 @@
var path = {{ path|tojson|safe }};
var view = 'browse';
</script>
<script src="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.js') }}"></script>
<script src="{{ url_for('deposit_bp.static', filename='lib/flow-js/flow.min.js') }}"></script>
<script src="{{ url_for('deposit_bp.static', filename='lib/dragbetter-js/jquery.dragbetter.js') }}"></script>
<script src="{{ url_for('deposit_bp.static', filename='js/data.js') }}"></script>
Expand Down
4 changes: 2 additions & 2 deletions deposit/templates/deposit/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block title %}{{ super() }} &dash; Deposit &dash; My deposits{% endblock title %}

{% block style %}
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('deposit_bp.static', filename='css/overview.css') }}">
{% endblock style %}

Expand All @@ -12,7 +12,7 @@
var browseStartDir = dir = path = {{ path|tojson|safe }};
var view = 'browse';
</script>
<script src="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.js') }}"></script>
<script src="{{ url_for('deposit_bp.static', filename='js/overview.js') }}"></script>
{% endblock scripts %}

Expand Down
6 changes: 3 additions & 3 deletions general/templates/general/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

<link rel="shortcut icon" href="{{ url_for('static', filename='img/favicon.ico') }}">

<link rel="stylesheet" href="{{ url_for('static', filename='lib/fontawesome-free-6.0.0/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/fontawesome-free-6.0.0/css/all.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/fontawesome-free-6.4.0/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/fontawesome-free-6.4.0/css/all.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/yoda-portal.css') }}">
{% block style %}{% endblock style %}

<script src="{{ url_for('static', filename='lib/bootstrap-5.2.0/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/yoda.js') }}"></script>
{% if g.user %}
<script src="{{ url_for('static', filename='lib/jquery-3.6.4/jquery-3.6.4.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/jquery-3.7.0/jquery-3.7.0.min.js') }}"></script>
{% endif %}
<script>
Yoda.csrf = {tokenName: 'csrf_token', tokenValue: '{{ csrf_token() }}'};
Expand Down
2 changes: 1 addition & 1 deletion group_manager/templates/group_manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endblock style %}

{% block scripts %}
<script src="{{ url_for('static', filename='lib/jquery-3.6.4/jquery-migrate-3.4.1.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/jquery-migrate-3.4.1/jquery-migrate-3.4.1.min.js') }}"></script>
<script src="{{ url_for('group_manager_bp.static', filename='js/group_manager.js') }}"></script>
<script src="{{ url_for('group_manager_bp.static', filename='lib/select2/select2.min.js') }}"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion intake/templates/intake/intake.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% endblock style %}

{% block scripts %}
<script src="{{ url_for('static', filename='lib/jquery-3.6.4/jquery-migrate-3.4.1.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/jquery-migrate-3.4.1/jquery-migrate-3.4.1.min.js') }}"></script>
<script src="{{ url_for('intake_bp.static', filename='scripts/jquery.dataTables.min.js') }}"></script>
<script src="{{ url_for('intake_bp.static', filename='scripts/dataTables.bootstrap.js') }}"></script>
<script src="{{ url_for('intake_bp.static', filename='scripts/dataTables.bootstrapPagination-3.js') }}"></script>
Expand Down
4 changes: 2 additions & 2 deletions research/templates/research/browse.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block title %}{{ super() }} &dash; Research{% endblock title %}

{% block scripts %}
<script src="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.js') }}"></script>
<script src="{{ url_for('research_bp.static', filename='lib/flow-js/flow.min.js') }}"></script>
<script src="{{ url_for('research_bp.static', filename='js/research.js') }}"></script>
<script src="{{ url_for('research_bp.static', filename='js/dlgFileBrowseOperations.js') }}"></script>
Expand All @@ -16,7 +16,7 @@

{% block style %}
<link rel="stylesheet" href="{{ url_for('research_bp.static', filename='css/research.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.css') }}">
{% endblock style %}

{% block content %}
Expand Down
4 changes: 2 additions & 2 deletions search/templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{% block title %}{{ super() }} &dash; Search{% endblock title %}

{% block scripts %}
<script src="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.js') }}"></script>
<script src="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.js') }}"></script>
<script src="{{ url_for('search_bp.static', filename='js/revision.js') }}"></script>
<script src="{{ url_for('search_bp.static', filename='js/search.js') }}"></script>
{% endblock scripts %}

{% block style %}
<link rel="stylesheet" href="{{ url_for('search_bp.static', filename='css/search.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.11.2/datatables.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='lib/datatables-1.13.5/datatables.min.css') }}">
{% endblock style %}

{% block content %}
Expand Down
17 changes: 0 additions & 17 deletions static/lib/datatables-1.11.2/datatables.min.css

This file was deleted.

Loading

0 comments on commit 1a997bf

Please sign in to comment.