mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Fixed tests
This commit is contained in:
@@ -284,6 +284,7 @@ def init_app(application):
|
||||
|
||||
@application.context_processor
|
||||
def _attach_current_global_daily_messages():
|
||||
global global_limit
|
||||
remaining_global_messages = 0
|
||||
if current_app:
|
||||
if request.view_args:
|
||||
@@ -302,8 +303,8 @@ def init_app(application):
|
||||
"count"
|
||||
)
|
||||
return {
|
||||
"global_message_limit": global_limit,
|
||||
"daily_global_messages_remaining": remaining_global_messages,
|
||||
"global_message_limit": global_limit
|
||||
}
|
||||
|
||||
@application.before_request
|
||||
|
||||
Reference in New Issue
Block a user