Snake case

main
Bob Mottram 2021-12-26 18:40:10 +00:00
parent 49d6219e78
commit e03417ef54
2 changed files with 3 additions and 3 deletions

View File

@ -261,7 +261,7 @@ from utils import get_image_mime_type
from utils import has_object_dict
from utils import user_agent_domain
from utils import isLocalNetworkAddress
from utils import permittedDir
from utils import permitted_dir
from utils import isAccountDir
from utils import getOccupationSkills
from utils import getOccupationName
@ -14897,7 +14897,7 @@ class PubServer(BaseHTTPRequestHandler):
'_GET', 'GET busy time',
self.server.debug)
if not permittedDir(self.path):
if not permitted_dir(self.path):
if self.server.debug:
print('DEBUG: GET Not permitted')
self._404()

View File

@ -2815,7 +2815,7 @@ def isAccountDir(dirName: str) -> bool:
return True
def permittedDir(path: str) -> bool:
def permitted_dir(path: str) -> bool:
"""These are special paths which should not be accessible
directly via GET or POST
"""