Fixed issue related to extra semicolons and function naming convention reported by SonarQube.

This commit is contained in:
Satish V
2020-06-24 16:16:12 +05:30
committed by Akshay Joshi
parent db9d684524
commit a1fd9ea3ce
10 changed files with 13 additions and 13 deletions

View File

@@ -1032,7 +1032,7 @@ class Filemanager(object):
return result
@staticmethod
def getNewName(dir, path, newName, count=1):
def get_new_name(dir, path, newName, count=1):
"""
Utility to provide new name for folder if file
with same name already exists
@@ -1046,7 +1046,7 @@ class Filemanager(object):
newPath = u"{}/{}{}_{}".format(dir, path, newName, last_char)
if path_exists(newPath):
count += 1
return Filemanager.getNewName(dir, path, newName, count)
return Filemanager.get_new_name(dir, path, newName, count)
else:
return newPath, newName
@@ -1160,7 +1160,7 @@ class Filemanager(object):
code = 0
err_msg = gettext(u"Error: {0}").format(e.strerror)
else:
newPath, newName = self.getNewName(dir, path, name)
newPath, newName = self.get_new_name(dir, path, name)
try:
os.mkdir(newPath)
except Exception as e:

View File

@@ -185,7 +185,7 @@
}
.upload_file .file_upload_main {
height: 127px;;
height: 127px;
width: 120px;
display: inline-block;
margin: 0 15px 15px 0 !important;
@@ -345,7 +345,7 @@ table.tablesorter {
table.tablesorter {
th:focus,
tr:focus {
border: 2px solid $input-focus-border-color !important;;
border: 2px solid $input-focus-border-color !important;
}
}