Skip to content

Commit

Permalink
Minor text and UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
calpaterson committed Aug 16, 2024
1 parent c2ec0ec commit 9d7c985
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion csvbase/web/faq/entries/basic-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ username and password. For example:

`https://calpaterson:[email protected]/calpaterson/countries`

Other times they will not and there will often be a separate field
Occasionally, some tools will have a separate field where you enter the
username and password.

## The `~/.netrc` file

Expand Down
2 changes: 2 additions & 0 deletions csvbase/web/faq/entries/duckdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ You can also use plain csv:
select * from read_csv_auto("https://csvbase.com/meripaterson/stock-exchanges.csv");
```

But that is, generally, slower.

## Read and write access from the `duckdb` Python driver

If you're using the Python driver for duckdb you can also use `csvbase-client`
Expand Down
4 changes: 2 additions & 2 deletions csvbase/web/templates/table_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ <h5 class="card-title"><a href="{{ url_for('csvbase.table_view', username=table.

{%- macro render_row_count(table) -%}
{%- if table.row_count.exact == None -%}
<span title="~ {{table.row_count.approx}} rows" data-tooltip="top">approximately {{ table.row_count.approx|humanize_intword("%0.0f") }}</span>
<span title="~ {{table.row_count.approx}} rows" data-tooltip="top">approx. {{ table.row_count.approx|humanize_intcomma }}</span>
{%- elif table.row_count.exact == 0 -%}
0
{%- else -%}
<span title="{{table.row_count.exact}} rows" data-tooltip="top">{{ table.row_count.exact|humanize_intword("%0.0f") }}</span>
<span title="{{table.row_count.exact}} rows" data-tooltip="top">{{ table.row_count.exact|humanize_intcomma }}</span>
{%- endif -%}
{%- endmacro -%}

Expand Down

0 comments on commit 9d7c985

Please sign in to comment.