Skip to content

Commit 74bd569

Browse files
Apply prepare changes
1 parent 63af3ae commit 74bd569

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/opengeodeweb_back/utils_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ def update_last_request_time(current_app):
3232
LAST_REQUEST_TIME = time.time()
3333
current_app.config.update(LAST_REQUEST_TIME=LAST_REQUEST_TIME)
3434

35+
3536
def before_request(current_app):
3637
increment_request_counter(current_app)
3738

39+
3840
def teardown_request(current_app):
3941
decrement_request_counter(current_app)
4042
update_last_request_time(current_app)
4143

44+
4245
def kill_task(current_app):
4346
DESKTOP_APP = bool(current_app.config.get("DESKTOP_APP"))
4447
REQUEST_COUNTER = int(current_app.config.get("REQUEST_COUNTER"))

tests/test_utils_functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def test_teardown_request(app_context):
3434
assert flask.current_app.config.get("LAST_REQUEST_TIME") >= LAST_REQUEST_TIME
3535

3636

37-
3837
def test_versions():
3938
list_packages = [
4039
"OpenGeode-core",

0 commit comments

Comments
 (0)