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
|
|
||||||
return None
|
|
||||||
method_name = 'version_' + str(version)
|
method_name = 'version_' + str(version)
|
||||||
method = getattr(self, method_name, lambda: "Invalid version")
|
method = getattr(self, method_name, lambda: "Invalid version")
|
||||||
return method()
|
return method()
|
||||||
|
# return None when its getting wrong input
|
||||||
|
return None
|
||||||
|
|
||||||
def version_1(self):
|
def version_1(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user