Update FitItem to use modified datetime of fit (fallback to created and old timestamp). Remove activation of FitItem timer (no idea what this is trying to do???)

This commit is contained in:
blitzmann
2017-04-22 19:30:50 -04:00
parent b4930d15b7
commit ae99a179d9
2 changed files with 11 additions and 4 deletions

View File

@@ -20,6 +20,7 @@
import copy
from logbook import Logger
from time import time
import datetime
import eos.db
from eos.saveddata.booster import Booster as es_Booster
@@ -93,7 +94,7 @@ class Fit(object):
fits = eos.db.getFitsWithShip(shipID)
names = []
for fit in fits:
names.append((fit.ID, fit.name, fit.booster, fit.timestamp))
names.append((fit.ID, fit.name, fit.booster, fit.modified or fit.created or datetime.datetime.fromtimestamp(fit.timestamp)))
return names