mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 22:07:45 +00:00
rework double filter
This commit is contained in:
parent
c89e6ef28c
commit
4f72691c65
2 changed files with 44 additions and 21 deletions
|
|
@ -35,7 +35,7 @@ class Packet:
|
|||
else:
|
||||
logging.debug("create bwPacket from string")
|
||||
try:
|
||||
self._packet = eval(bwPacket.strip())
|
||||
self._packet = eval(str(bwPacket.strip()))
|
||||
except:
|
||||
# todo can we repair the packet anyway?
|
||||
logging.exception("error while create packet from string")
|
||||
|
|
@ -49,7 +49,7 @@ class Packet:
|
|||
|
||||
@param fieldName: Name of the data to set
|
||||
@param value: Value to set"""
|
||||
self._packet[fieldName] = str(value)
|
||||
self._packet[fieldName] = value
|
||||
|
||||
def get(self, fieldName):
|
||||
"""!Returns the value from a single field.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue