Skip to content

Commit

Permalink
Merge pull request #970 from Mygod/nohardlimit
Browse files Browse the repository at this point in the history
fix: no more search hard limits
  • Loading branch information
TurtIeSocks authored Nov 16, 2024
2 parents 9ed3aca + 8801d28 commit d4f629b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion server/src/services/DbManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,22 @@ class DbManager extends Logger {
let deDuped = []
let count = 0
let distance = softLimit
const max = model === 'Pokemon' ? hardLimit / 2 : hardLimit
let max = hardLimit
switch (model) {
case 'Pokemon':
max = hardLimit / 2
break
case 'Gym':
case 'Nest':
case 'Pokestop':
case 'Portal':
case 'Route':
case 'Station':
max = 22222
break
default:
break
}
const startTime = Date.now()
while (deDuped.length < searchLimit) {
const loopTime = Date.now()
Expand Down

0 comments on commit d4f629b

Please sign in to comment.