From ca40de82dd0c2cbe1c55558bf9a5220dfcc344ea Mon Sep 17 00:00:00 2001 From: Helldragon67 Date: Thu, 23 Jan 2025 08:04:26 +0100 Subject: [PATCH] working cache --- backend/.gitignore | 1 + backend/report.html | 6 +- backend/src/overpass/caching_strategy.py | 133 ++++++++++ backend/src/overpass/overpass.py | 114 ++++++++ backend/src/tests/test_main.py | 8 +- backend/src/utils/landmarks_manager.py | 316 ++++++++++------------- backend/src/utils/overpass.py | 199 -------------- 7 files changed, 389 insertions(+), 388 deletions(-) create mode 100644 backend/src/overpass/caching_strategy.py create mode 100644 backend/src/overpass/overpass.py delete mode 100644 backend/src/utils/overpass.py diff --git a/backend/.gitignore b/backend/.gitignore index e9a2840..e41338d 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,4 +1,5 @@ # osm-cache and wikidata cache +cache_XML/ cache/ apicache/ diff --git a/backend/report.html b/backend/report.html index 84a378d..b34ea7a 100644 --- a/backend/report.html +++ b/backend/report.html @@ -328,7 +328,7 @@ div.media {

Backend Testing Report

-

Report generated on 22-Jan-2025 at 16:51:34 by pytest-html +

Report generated on 23-Jan-2025 at 08:03:39 by pytest-html v4.1.1

Environment

@@ -382,7 +382,7 @@ div.media {

Summary

-

1 test took 00:00:17.

+

1 test took 00:00:19.

(Un)check the boxes to filter the results.