Fixed initial 0 count value before refresh

This commit is contained in:
Andrew Shumway
2023-10-27 10:23:59 -06:00
committed by Carlo Costino
parent 62a09c5223
commit d26a5b6a75

View File

@@ -286,7 +286,10 @@ def init_app(application):
def _attach_current_global_daily_messages():
remaining_global_messages = 0
if current_app:
service_id = session.get("service_id")
if request.view_args:
service_id = request.view_args.get("service_id", session.get("service_id"))
else:
service_id = session.get("service_id")
if service_id:
global_limit = current_app.config["GLOBAL_SERVICE_MESSAGE_LIMIT"]