Skip to content

Commit 1310c88

Browse files
authored
Merge pull request #36 from andychoi/master
sub-folder issue
2 parents 251d233 + 2ee391f commit 1310c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log_viewer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def get_log_files(directory, max_items_per_page, current_page):
2828
>>>
2929
"""
3030
result = {}
31+
all_log_files = []
3132
for root, _, files in os.walk(directory):
3233
all_files = list(filter(lambda x: x.find("~") == -1, files))
3334

34-
all_log_files = []
3535
all_log_files.extend(
3636
list(filter(lambda x: x in settings.LOG_VIEWER_FILES, all_files))
3737
)

0 commit comments

Comments
 (0)