Fixed Reworking

This commit is contained in:
2016-12-13 20:45:51 +01:00
parent 2773af9f7c
commit 8dad2891f4
2 changed files with 6 additions and 5 deletions

10
DB.py
View File

@@ -654,11 +654,11 @@ class DB:
"""
Updates part information
"""
try:
cursor = self.executesql ("UPDATE bde SET %s = '%s' WHERE dmc = '%s';" % (where, value, dmc))
except:
self.errlog ("Couldnt update field %s in table %s" % (field, where))
# Disablede Updating of BDE state
#try:
# cursor = self.executesql ("UPDATE bde SET %s = '%s' WHERE dmc = '%s';" % (where, value, dmc))
#except:
# self.errlog ("Couldnt update field %s in table %s" % (field, where))
if where == 'chiron':
self.log (5, 'Where is Chiron no need to update')

1
bde.py
View File

@@ -468,6 +468,7 @@ class BDEServer ():
_mbspace = ' ' * 14
_mbspace2 = ' ' * 4
_data += _data2.encode ()
_data += _dmc.encode () + _start.encode () + _end.encode () + _typ + _var + _bnst.encode () + \