This commit is contained in:
Palma Solutions LTD
2019-01-02 12:47:18 +01:00
parent 0273a8820c
commit dda76ee51a
2 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
import os
import re
import fnmatch
import textwrap
whitelist = [
'/lp-msh-scanner/',
@@ -610,7 +611,7 @@ def is_hacked(filename):
cleanup_available = True
if cleanup_available and line_num == 1:
cleanup_available = False
return {'filename': filename,
return {'filename': join(textwrap.wrap(filename, 200),
'score': total_score,
'mtime': os.stat(filename).st_mtime,
'ctime': os.stat(filename).st_ctime,