Skip to content

Commit

Permalink
Add variants of "Name" in table.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinjn committed Sep 2, 2021
1 parent dc894b3 commit 69ec32f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions AssetStudio/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,16 @@ def process_pkg_csv(filename):
continue

row = items[0]
names = []
containers = []
originalFiles = []
preview = ''
for item in items:
name = item['Container']
if not name:
name = '""'
containers.append(name)
container = item['Container']
if not container:
container = '""'
names.append(item['Name'])
containers.append(container)
originalFiles.append(item['OriginalFile'])
asset_filename = row['FileName']
if 'png' in asset_filename:
Expand All @@ -180,7 +182,7 @@ def process_pkg_csv(filename):
if 'Crunched' in format:
format = format.replace('Crunched', '')
markdown.write('%s|%s|%s|%s|%s|%s|%s\n' % (
row['Name'],
'<br>'.join(names),
'%s<br>%s%s' % (type, pretty_number(row['Size']), '*%d'% item_count if item_count > 1 else ''),
'**%s**' % pretty_number(v['wasted']),
'%s<br>%s' % (row['Dimension'], format),
Expand Down

0 comments on commit 69ec32f

Please sign in to comment.