Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only send updated and newly visible Stops/Gyms/Pokémon and not-'hidde…
…n' Pokémon in the JSON from server to client. (RocketMap#1303) * Only send 'not-hidden' pokemon * Forgot to take out console.log * More space fixes * Bye redundant pokestop requests. Hi, travis? * <3 Travis * one more commit, should really test before push * When moving screen only send new pokestops + modified * Yes, spaces indentations and empty lines.. * And again.. * And another.. * Dont query each ID but remove ID's we dont send afterwards. * Check if Stops/Gyms go from off to on, use same old/previous coords for both Gyms/Stops and use optional parameters in get_stops/get_gyms instead of new function * Spaces indents and you know whats. * Only send updated and newly visible Stops/Gyms and not-'hidden' Pokemon. * Query datetime instead of time * Clean exclude query. * over-indented * Only send modified pokemon and uncovered. * Fix list + list, instead of .update * Default value for last_modified * Optimize SQL queries * Code cleanup * Code from PR RocketMap#1272, Pokémon already in database don't need to be parsed again. * Code fixes and optimising ScannedLocations * Fix if clause so pokemen get properly skipped. * A bridge too far, ScannedLocations dont update properly when only sending new locations (Reverting Scannedlocations changes) * Code fixes * Check for Gym last scanned instead of modified to update front-end Last Scanned value. * Code cleanup/optimization for app.py * refactor map.js to not require full data set for scanned locations and spawn points * Fix switch flip in between json updates * Optimize scannedlocations and spawnpoints * Random capitals and code fixes * Optimize map.js thanks @DiscoTim * Fix class so it works like it used to * Code clean up, prevstamp was not used * When zooming in we are not uncovering new terrain, so no need to look further then last_modified * # Comments to clarify * It needs some overlap * Determine last_modified on insert * Move timestanp generation up * Reduced the need for backtrack on timestamp Reduced the default response, no need for the previous status on switch if its false. Dont send the new fields in the response Collect all pokemon/forts from cells before running queries. Dont upsert pokestops that haven't changed since last scan. Show in log how many pokemon/pokestop we didnt upsert (skipped). Set scannedlocation last_modified on upsert instead of in code. Add extra column on pokestops to keep track of when its been updated so we can send it to the map. * update map.js to not require full set of pokestops * Minor text fixes * Frontend/Backend fixes Only send lured stops if lured-only is selected Resend unhidden Pokes * Minor map fix * Minor text fixes. * Send all pokemon details to frontend * Small woopsie oh baby, oh baby, prepare for disappointment ;P -Thunderfox
- Loading branch information