mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Fixed initial 0 count value before refresh
This commit is contained in:
committed by
Carlo Costino
parent
62a09c5223
commit
d26a5b6a75
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user