repairs stupid
This commit is contained in:
4
app.py
4
app.py
@@ -26,7 +26,7 @@ API_KEY = config['DEFAULT']['API_KEY']
|
||||
|
||||
bootstrap = Bootstrap5(app)
|
||||
|
||||
app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'sandstone'
|
||||
app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'litera'
|
||||
|
||||
# Initialize the logger
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -131,7 +131,7 @@ def tail(filename, n):
|
||||
yield ''
|
||||
return
|
||||
|
||||
page_size = config['LOGGING']['TAIL_PAGE_SIZE']
|
||||
page_size = int(config['LOGGING']['TAIL_PAGE_SIZE'])
|
||||
offsets = []
|
||||
count = _n = n if n >= 0 else -n
|
||||
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
[DEFAULT]
|
||||
SECRET_KEY = your_secret_key # Secret key for session management
|
||||
API_KEY = your_api_key # API key for accessing the TORN API. Public key should be enough
|
||||
# Secret key for session management
|
||||
SECRET_KEY = your_secret_key
|
||||
# API key for accessing the TORN API. Public key should be enough
|
||||
API_KEY = your_api_key
|
||||
|
||||
[LOGGING]
|
||||
VIEW_MAX_LINES = 500 # Maximum number of lines to display in the log viewer
|
||||
VIEW_PAGE_LINES = 50 # Number of lines to display per page in the log viewer
|
||||
TAIL_PAGE_SIZE = 100 # Number of bytes to read at a time
|
||||
# Maximum number of lines to display in the log viewer
|
||||
VIEW_MAX_LINES = 500
|
||||
# Number of lines to display per page in the log viewer
|
||||
VIEW_PAGE_LINES = 50
|
||||
# Number of bytes to read at a time
|
||||
TAIL_PAGE_SIZE = 100
|
||||
Reference in New Issue
Block a user