mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -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
|
JavascriptBundler, JsState
|
||||||
app.debug = True
|
app.debug = True
|
||||||
|
|
||||||
javascriptBundler = JavascriptBundler()
|
javascript_bundler = JavascriptBundler()
|
||||||
javascriptBundler.bundle()
|
javascript_bundler.bundle()
|
||||||
if javascriptBundler.report() == JsState.NONE:
|
if javascript_bundler.report() == JsState.NONE:
|
||||||
app.logger.error(
|
app.logger.error(
|
||||||
"Unable to generate javascript.\n"
|
"Unable to generate javascript.\n"
|
||||||
"To run the app ensure that yarn install command runs "
|
"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 we have length & precision both
|
||||||
if length and precision:
|
if length and precision:
|
||||||
matchObj = re.search(r'(\d+),(\d+)', fulltype)
|
match_obj = re.search(r'(\d+),(\d+)', fulltype)
|
||||||
if matchObj:
|
if match_obj:
|
||||||
data['attlen'] = matchObj.group(1)
|
data['attlen'] = match_obj.group(1)
|
||||||
data['attprecision'] = matchObj.group(2)
|
data['attprecision'] = match_obj.group(2)
|
||||||
elif length:
|
elif length:
|
||||||
# If we have length only
|
# If we have length only
|
||||||
matchObj = re.search(r'(\d+)', fulltype)
|
match_obj = re.search(r'(\d+)', fulltype)
|
||||||
if matchObj:
|
if match_obj:
|
||||||
data['attlen'] = matchObj.group(1)
|
data['attlen'] = match_obj.group(1)
|
||||||
data['attprecision'] = None
|
data['attprecision'] = None
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user