Removed log parsing from system route.

pull/380/head
Louis Vézina 6 years ago
parent f1ba4ca8dd
commit 1a3b6ec289

@ -1641,14 +1641,6 @@ def system():
throttled_providers = list_throttled_providers() throttled_providers = list_throttled_providers()
i = 0
with open(os.path.join(args.config_dir, 'log', 'bazarr.log')) as f:
for i, l in enumerate(f, 1):
pass
row_count = i
page_size = int(settings.general.page_size)
max_page = int(math.ceil(row_count / (page_size + 0.0)))
try: try:
with open(os.path.join(args.config_dir, 'config', 'releases.txt'), 'r') as f: with open(os.path.join(args.config_dir, 'config', 'releases.txt'), 'r') as f:
releases = ast.literal_eval(f.read()) releases = ast.literal_eval(f.read())

Loading…
Cancel
Save