927 - Updates to math in Dashboard area

This commit is contained in:
Jonathan Bobel
2023-11-16 12:02:59 -05:00
parent b58b517fc8
commit 06a15c5afc
6 changed files with 18 additions and 5 deletions

View File

@@ -301,7 +301,10 @@ def init_app(application):
remaining_global_messages = global_limit - global_messages_count.get(
"count"
)
return {"daily_global_messages_remaining": remaining_global_messages}
return {
"daily_global_messages_remaining": remaining_global_messages,
"global_message_limit": global_limit
}
@application.before_request
def record_start_time():