constantify render depth limit
This commit is contained in:
parent
4cecdef35a
commit
f8f55be8b0
6 changed files with 16 additions and 24 deletions
|
@ -55,6 +55,10 @@ ERROR_MESSAGES = {
|
|||
}
|
||||
|
||||
LOGGEDIN_ACTIVE_TIME = 15 * 60
|
||||
RENDER_DEPTH_LIMIT = 9
|
||||
'''
|
||||
The maximum depth at which a comment tree is rendered
|
||||
'''
|
||||
|
||||
WERKZEUG_ERROR_DESCRIPTIONS = {
|
||||
400: "The browser (or proxy) sent a request that this server could not understand.",
|
||||
|
|
|
@ -84,6 +84,7 @@ def inject_constants():
|
|||
"COLORS":COLORS,
|
||||
"THEMES":THEMES,
|
||||
"PERMS":PERMS,
|
||||
"RENDER_DEPTH_LIMIT":RENDER_DEPTH_LIMIT,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue