diff --git a/gui/utils/exportHtml.py b/gui/utils/exportHtml.py
index 0d5456dd0..233b79c78 100644
--- a/gui/utils/exportHtml.py
+++ b/gui/utils/exportHtml.py
@@ -195,55 +195,51 @@ class exportHtmlThread(threading.Thread):
if len(fits) > 0:
groupFits += len(fits)
+ HTMLship = (
+ '
\n'
+ ' ' + ship.name + ' ' + str(
+ len(fits)) + '
\n'
+ ' \n'
+ )
- if len(fits) == 1:
+ for fit in fits:
if self.stopRunning:
return
- fit = fits[0]
try:
- dnaFit = Port.exportDna(getFit(fit[0]))
- HTMLgroup += ' - ' + ship.name + ": " + \
- fit[1] + '
\n'
+ eftFit = Port.exportEft(getFit(fit[0]))
+ print(eftFit)
+
+ HTMLfit = (
+ ' - \n'
+ '
' + fit[1] + '
\n'
+ ' \n'
+ )
+
+ HTMLfit += ' ' + eftFit + '\n
\n'
+
+ HTMLfit += '
\n \n'
+ HTMLship += HTMLfit
except:
pyfalog.warning("Failed to export line")
- pass
+ continue
finally:
if self.callback:
wx.CallAfter(self.callback, count)
count += 1
- else:
- # Ship group header
- HTMLship = (
- ' - \n'
- '
' + ship.name + ' ' + str(
- len(fits)) + '
\n'
- ' \n'
- )
-
- for fit in fits:
- if self.stopRunning:
- return
- try:
- dnaFit = Port.exportDna(getFit(fit[0]))
- print(dnaFit)
- HTMLship += ' - ' + fit[
- 1] + '
\n'
- except:
- pyfalog.warning("Failed to export line")
- continue
- finally:
- if self.callback:
- wx.CallAfter(self.callback, count)
- count += 1
- HTMLgroup += HTMLship + ('
\n'
- ' \n')
+ HTMLgroup += HTMLship + ('
\n'
+ ' \n')
if groupFits > 0:
# Market group header
HTML += (
' \n'
' ' + group.groupName + ' ' + str(groupFits) + '
\n'
- ' \n' + HTMLgroup +
+ ' \n'
'
'
)
@@ -279,7 +275,8 @@ class exportHtmlThread(threading.Thread):
return
try:
dnaFit = Port.exportDna(getFit(fit[0]))
- HTML += '' + ship.name + ': ' + \
+ HTML += '' \
+ + ship.name + ': ' + \
fit[1] + '
\n'
except:
pyfalog.error("Failed to export line")