From c2d60963a2224c92634fd027708e207213e1bb3a Mon Sep 17 00:00:00 2001
From: thomaswoehlke <thomas.woehlke@gmail.com>
Date: Tue, 18 May 2021 18:26:32 +0200
Subject: [PATCH] Fixed #179 add Flask-Caching

---
 src/covid19/blueprints/app_all/all_model.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/covid19/blueprints/app_all/all_model.py b/src/covid19/blueprints/app_all/all_model.py
index 909779d5..48911def 100644
--- a/src/covid19/blueprints/app_all/all_model.py
+++ b/src/covid19/blueprints/app_all/all_model.py
@@ -136,14 +136,14 @@ class ApplicationDateReported(db.Model):
             .one_or_none()
 
     @classmethod
-    @cache.memoize(50)
+    # @cache.memoize(50)
     def get_by_date_reported(cls, p_date_reported: str):
         return db.session.query(cls)\
             .filter(cls.date_reported_import_str == p_date_reported)\
             .one()
 
     @classmethod
-    @cache.memoize(50)
+    # @cache.memoize(50)
     def find_by_date_reported(cls, p_date_reported: str):
         return db.session.query(cls)\
             .filter(cls.date_reported_import_str == p_date_reported)\
@@ -208,7 +208,7 @@ class ApplicationRegion(db.Model):
         return regions
 
     @classmethod
-    @cache.memoize(50)
+    # @cache.memoize(50)
     def get_by_id(cls, other_id: int):
         return db.session.query(cls)\
             .filter(cls.id == other_id)\
@@ -221,7 +221,7 @@ class ApplicationRegion(db.Model):
             .one_or_none()
 
     @classmethod
-    @cache.memoize(50)
+    # @cache.memoize(50)
     def get_by_region(cls, i_region: str):
         return db.session.query(cls)\
             .filter(cls.region == i_region)\
-- 
GitLab