Skip to content

Commit

Permalink
fix: 🚑 reduce rows to prevent errors (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesOberreiter committed May 11, 2024
1 parent bb3bf1d commit 95044a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function updateFields(){
const downloadButton = document.getElementById('downloadBtn');
downloadButton.addEventListener('click', onDownloadClick);
function onDownloadClick() {
if (!confirm('Do you want to the search result as csv file (max. 10_000 rows)?')) {
if (!confirm('Do you want to the search result as csv file (max. 1_000 rows)?')) {
return;
}
const downloadUrl = "/download" + new URL(window.location.href).search;
Expand Down
2 changes: 1 addition & 1 deletion pkg/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var _taxonRankMap = map[string]string{"kingdom": "TaxonKingdom", "phylum": "Taxo
var _selectArray = []string{"taxa.TaxonID", "ScientificName", "CountryCode", "LastFetch", "ObservationID", "ObservationDate", "TaxonKingdom", "TaxonPhylum", "TaxonClass", "TaxonOrder", "TaxonFamily", "isSynonym", "SynonymName", "SynonymID"}

const DefaultPageLimit = uint64(100)
const IncreasedPageLimit = uint64(10_000)
const IncreasedPageLimit = uint64(1_000)

// Create a new query object with default values or set values from payload struct
func NewQuery(payload any) Query {
Expand Down

0 comments on commit 95044a5

Please sign in to comment.