mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
More elegant loop
This commit is contained in:
parent
e379f4e3db
commit
723ff2eebb
1 changed files with 1 additions and 2 deletions
|
@ -392,8 +392,7 @@ def service_log(name, number=50):
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for index in range(len(log_list)):
|
for index, log_path in enumerate(log_list):
|
||||||
log_path = log_list[index]
|
|
||||||
log_type = log_type_list[index]
|
log_type = log_type_list[index]
|
||||||
|
|
||||||
if log_type == "file":
|
if log_type == "file":
|
||||||
|
|
Loading…
Add table
Reference in a new issue