mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-30 13:33:17 +02:00
Fix bug that always enabled news_random_line_only
This looks like a simple typo that accidentally used read_news_enabled for the news_random_line_only parameter. As a result, the news_random_line_only setting was always treated as True (since this line it only executed if read_news_enabled was True). Now it obeys the configuration value.
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ def read_file(file_monitor_file_path, random_line_only=False):
|
||||
|
||||
def read_news():
|
||||
# read the news file on demand
|
||||
return read_file(news_file_path, read_news_enabled)
|
||||
return read_file(news_file_path, news_random_line_only)
|
||||
|
||||
|
||||
def write_news(content, append=False):
|
||||
|
||||
Reference in New Issue
Block a user