mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Fixed code smell for variable naming convention.
This commit is contained in:
parent
2db9242f5c
commit
916182f80f
@ -155,9 +155,9 @@ def main():
|
||||
JavascriptBundler, JsState
|
||||
app.debug = True
|
||||
|
||||
javascriptBundler = JavascriptBundler()
|
||||
javascriptBundler.bundle()
|
||||
if javascriptBundler.report() == JsState.NONE:
|
||||
javascript_bundler = JavascriptBundler()
|
||||
javascript_bundler.bundle()
|
||||
if javascript_bundler.report() == JsState.NONE:
|
||||
app.logger.error(
|
||||
"Unable to generate javascript.\n"
|
||||
"To run the app ensure that yarn install command runs "
|
||||
|
@ -352,15 +352,15 @@ def fetch_length_precision(data):
|
||||
|
||||
# If we have length & precision both
|
||||
if length and precision:
|
||||
matchObj = re.search(r'(\d+),(\d+)', fulltype)
|
||||
if matchObj:
|
||||
data['attlen'] = matchObj.group(1)
|
||||
data['attprecision'] = matchObj.group(2)
|
||||
match_obj = re.search(r'(\d+),(\d+)', fulltype)
|
||||
if match_obj:
|
||||
data['attlen'] = match_obj.group(1)
|
||||
data['attprecision'] = match_obj.group(2)
|
||||
elif length:
|
||||
# If we have length only
|
||||
matchObj = re.search(r'(\d+)', fulltype)
|
||||
if matchObj:
|
||||
data['attlen'] = matchObj.group(1)
|
||||
match_obj = re.search(r'(\d+)', fulltype)
|
||||
if match_obj:
|
||||
data['attlen'] = match_obj.group(1)
|
||||
data['attprecision'] = None
|
||||
|
||||
return data
|
||||
|
Loading…
Reference in New Issue
Block a user