Skip to content

Commit acd1ad1

Browse files
committed
remove rate limiter
1 parent cbd1221 commit acd1ad1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

findthatpostcode/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from findthatpostcode import blueprints, commands, db
1111
from findthatpostcode.controllers.areatypes import area_types_count
12-
from findthatpostcode.limiter import limiter
1312
from findthatpostcode.metadata import AREA_TYPES, KEY_AREA_TYPES, OTHER_CODES
1413

1514

@@ -64,7 +63,6 @@ def create_app(test_config=None):
6463

6564
db.init_app(app)
6665
commands.init_app(app)
67-
limiter.init_app(app)
6866
CORS(app)
6967

7068
# template helpers
@@ -86,21 +84,18 @@ def expand_commas(s):
8684

8785
# routes and blueprints
8886
@app.route("/")
89-
@limiter.exempt
9087
def index():
9188
ats = area_types_count(db.get_db())
9289
return render_template("index.html.j2", result=ats)
9390

9491
@app.route("/robots.txt")
95-
@limiter.exempt
9692
def robots():
9793
text = render_template("robots.txt")
9894
response = make_response(text)
9995
response.headers["Content-Type"] = "text/plain"
10096
return response
10197

10298
@app.route("/about")
103-
@limiter.exempt
10499
def about():
105100
return render_template("about.html.j2")
106101

0 commit comments

Comments
 (0)