From ed71fa48f106573435dd19355d138e2d9ce11d11 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 6 Apr 2022 21:01:31 +0300 Subject: [PATCH] cleaning unused settings --- core/views/statistics.py | 4 ++-- parsers/scans.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/views/statistics.py b/core/views/statistics.py index ad77199..14cee0f 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -37,7 +37,7 @@ def pathsreport(request): "EXPOUSER" : str( settings.EXPOUSER), "EXPOWEB" : str( settings.EXPOWEB), "EXPOWEB_URL" : str( settings.EXPOWEB_URL), - "FILES" : str( settings.FILES), +# "FILES" : str( settings.FILES), "LIBDIR" : str( settings.LIBDIR), "LOGFILE" : str( settings.LOGFILE), "LOGIN_REDIRECT_URL" : str( settings.LOGIN_REDIRECT_URL), @@ -74,7 +74,7 @@ def pathsreport(request): "EXPOUSER" : type(settings.EXPOUSER), "EXPOWEB" : type(settings.EXPOWEB), "EXPOWEB_URL" : type(settings.EXPOWEB_URL), - "FILES" : type(settings.FILES), +# "FILES" : type(settings.FILES), "LIBDIR" : type( settings.LIBDIR), "LOGFILE" : type(settings.LOGFILE), "LOGIN_REDIRECT_URL" : type(settings.LOGIN_REDIRECT_URL), diff --git a/parsers/scans.py b/parsers/scans.py index 6ac37fa..9960508 100644 --- a/parsers/scans.py +++ b/parsers/scans.py @@ -68,6 +68,9 @@ def get_or_create_placeholder(year): return placeholder_logbook_entry def listdir(*directories): + '''WHAT is this ?! Some python2 fossil. The only use of settings.SURVEYS + local import statement to be avoided, please. + ''' try: return os.listdir(os.path.join(settings.SURVEYS, *directories)) except: