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)
|
bootstrap = Bootstrap5(app)
|
||||||
|
|
||||||
app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'sandstone'
|
app.config['BOOTSTRAP_BOOTSWATCH_THEME'] = 'litera'
|
||||||
|
|
||||||
# Initialize the logger
|
# Initialize the logger
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@@ -131,7 +131,7 @@ def tail(filename, n):
|
|||||||
yield ''
|
yield ''
|
||||||
return
|
return
|
||||||
|
|
||||||
page_size = config['LOGGING']['TAIL_PAGE_SIZE']
|
page_size = int(config['LOGGING']['TAIL_PAGE_SIZE'])
|
||||||
offsets = []
|
offsets = []
|
||||||
count = _n = n if n >= 0 else -n
|
count = _n = n if n >= 0 else -n
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
SECRET_KEY = your_secret_key # Secret key for session management
|
# Secret key for session management
|
||||||
API_KEY = your_api_key # API key for accessing the TORN API. Public key should be enough
|
SECRET_KEY = your_secret_key
|
||||||
|
# API key for accessing the TORN API. Public key should be enough
|
||||||
|
API_KEY = your_api_key
|
||||||
|
|
||||||
[LOGGING]
|
[LOGGING]
|
||||||
VIEW_MAX_LINES = 500 # Maximum number of lines to display in the log viewer
|
# 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
|
VIEW_MAX_LINES = 500
|
||||||
TAIL_PAGE_SIZE = 100 # Number of bytes to read at a time
|
# 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