Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 4, 2023
1 parent d98dd82 commit 43e59a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/biomappings/templates/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h5 class="card-header text-center">Biomappings Su</h5>
<tr>
<td>{{ source_prefix }}</td>
<td>{{ target_prefix }}</td>
<td style="text-align: right;">{{ count }}</td>
<td style="text-align: right;">{{ "{:,d}".format(count) }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down
5 changes: 3 additions & 2 deletions src/biomappings/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
class State(BaseModel):
"""Contains the state for queries to the curation app."""

limit: int = 10
offset: int = 0
limit: Optional[int] = 10
offset: Optional[int] = 0
query: Optional[str] = None
source_query: Optional[str] = None
source_prefix: Optional[str] = None
Expand Down Expand Up @@ -491,6 +491,7 @@ def home():
def summary():
"""Serve the summary page."""
state = State.from_flask_globals()
state.limit = None
predictions = CONTROLLER.predictions_from_state(state)
counter = Counter(
(mapping["source prefix"], mapping["target prefix"]) for _, mapping in predictions
Expand Down

0 comments on commit 43e59a4

Please sign in to comment.