remove no in case
This commit is contained in:
parent
cdc2977331
commit
31c5e4ff38
|
@ -30,12 +30,12 @@ class UpgradeDB():
|
||||||
self.parameters = ""
|
self.parameters = ""
|
||||||
|
|
||||||
# Switch methods with respect to versions
|
# Switch methods with respect to versions
|
||||||
if not version in range(1, 11):
|
if version in range(1, 11):
|
||||||
# return None when its getting wrong input
|
method_name = 'version_' + str(version)
|
||||||
return None
|
method = getattr(self, method_name, lambda: "Invalid version")
|
||||||
method_name = 'version_' + str(version)
|
return method()
|
||||||
method = getattr(self, method_name, lambda: "Invalid version")
|
# return None when its getting wrong input
|
||||||
return method()
|
return None
|
||||||
|
|
||||||
def version_1(self):
|
def version_1(self):
|
||||||
"""
|
"""
|
||||||
|
|
Reference in New Issue
Block a user