Skip to content

Commit

Permalink
Более простое присваивание типа.
Browse files Browse the repository at this point in the history
  • Loading branch information
baranovskiykonstantin committed Dec 26, 2020
1 parent d6d82ce commit 3fa776c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions bom/Scripts/python/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,7 @@ def fillRow(values, isTitle=False, posIncrement=0):
compDealer = group[0].getBomValue("dealer")
compForWhat = group[0].getBomValue("for what")
compComment = group[0].getBomValue("comment")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
compCount = str(len(group[0]))
fillRow(
Expand Down
4 changes: 1 addition & 3 deletions gbom/Scripts/python/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ def fillRow(values, isTitle=False, posIncrement=0):
compDoc = group[0].getBomValue("doc")
compDealer = group[0].getBomValue("dealer")
compComment = group[0].getBomValue("comment")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
compCount = str(len(group[0]))
fillRow(
Expand Down
4 changes: 1 addition & 3 deletions gspec/Scripts/python/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,7 @@ def fillRow(values, isTitle=False, posIncrement=0):
compType = group[0].getSpecValue("type", singular=True)
compName = group[0].getSpecValue("name")
compDoc = group[0].getSpecValue("doc")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
if compDoc:
name += ' ' + compDoc
Expand Down
4 changes: 1 addition & 3 deletions index/Scripts/python/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ def fillRow(values, isTitle=False):
compType = group[0].getIndexValue("type", singular=True)
compName = group[0].getIndexValue("name")
compDoc = group[0].getIndexValue("doc")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
if compDoc:
name += ' ' + compDoc
Expand Down
4 changes: 1 addition & 3 deletions mexanic/Scripts/python/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,7 @@ def fillRow(values, isTitle=False, posIncrement=0):
compDoc = group[0].getBomValue("doc")
compDealer = group[0].getBomValue("dealer")
compComment = group[0].getBomValue("comment")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
compCount = str(len(group[0]))
compCountUnits = "шт."
Expand Down
4 changes: 1 addition & 3 deletions spec/Scripts/python/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,7 @@ def fillRow(values, isTitle=False, posIncrement=0):
compType = group[0].getSpecValue("type", singular=True)
compName = group[0].getSpecValue("name")
compDoc = group[0].getSpecValue("doc")
name = ""
if compType:
name += compType + ' '
name = (compType + ' ') if compType else ""
name += compName
if compDoc:
name += ' ' + compDoc
Expand Down

0 comments on commit 3fa776c

Please sign in to comment.