Skip to content

Commit c92911b

Browse files
committed
Work around for lack of flag_modified() support
1 parent adc9fb6 commit c92911b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

eos/db/saveddata/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def getFit(lookfor, eager=None):
186186
else:
187187
raise TypeError("Need integer as argument")
188188

189-
if fit.isInvalid:
189+
if fit and fit.isInvalid:
190190
with sd_lock:
191191
removeInvalid([fit])
192192
return None

eos/effectHandlerHelpers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# along with eos. If not, see <http://www.gnu.org/licenses/>.
1818
#===============================================================================
1919

20-
from sqlalchemy.orm.attributes import flag_modified
20+
#from sqlalchemy.orm.attributes import flag_modified
2121
import eos.db
2222
import eos.types
2323
import logging
@@ -107,7 +107,9 @@ def filteredChargeForce(self, filter, *args, **kwargs):
107107

108108
def remove(self, thing):
109109
# We must flag it as modified, otherwise it not be removed from the database
110-
flag_modified(thing, "itemID")
110+
# @todo: flag_modified isn't in os x skel. need to rebuild to include
111+
#flag_modified(thing, "itemID")
112+
thing.itemID = 0
111113
list.remove(self, thing)
112114

113115
class HandledModuleList(HandledList):

0 commit comments

Comments
 (0)