Skip to content

Commit

Permalink
Merge pull request #328 from inbo/fix-geo-url
Browse files Browse the repository at this point in the history
Fix geo url
  • Loading branch information
mainlyIt authored Feb 4, 2025
2 parents bcb59ce + 027dcab commit 50ec745
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stores/vespaStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const useVespaStore = defineStore('vespaStore', {
}

try {
const response = await ApiService.get(`/observations/dynamic-geojson?${filterQuery}`);
const response = await ApiService.get(`/observations/dynamic-geojson/?${filterQuery}`);
if (response.status === 200) {
this.observations = response.data.features;
this.setLastAppliedFilters();
Expand Down
2 changes: 1 addition & 1 deletion vespadb/observations/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def invalidate_geojson_cache() -> None:
"""Invalidate the cache for all GeoJSON observations."""
keys = cache.keys("vespadb::/observations/dynamic-geojson*")
keys = cache.keys("vespadb::/observations/dynamic-geojson/*")
cache.delete_many(keys)


Expand Down

0 comments on commit 50ec745

Please sign in to comment.