Fix some bugs with notes view - exception happening due to lack of fit, and possibility of notes saving under the wrong fit

This commit is contained in:
blitzmann
2017-04-12 23:22:57 -04:00
parent 5aeb3a38c8
commit e28bf545e9
2 changed files with 13 additions and 4 deletions

View File

@@ -180,6 +180,12 @@ class Fit(object):
fit.clear()
return fit
@staticmethod
def editNotes(fitID, notes):
fit = eos.db.getFit(fitID)
fit.notes = notes
eos.db.commit()
def toggleFactorReload(self, fitID):
pyfalog.debug("Toggling factor reload for fit ID: {0}", fitID)
if fitID is None: