Corrected format data

This commit is contained in:
Emily 2018-09-26 09:40:17 +02:00
parent 2887b7acf0
commit 006fc2c369
2 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def query_r():
flat_packet_data = dataHelper.flatten(packet_data)
packet = struct.pack(b"<H" + b"c%dsc%ds" * flat_packet_data[0] # using len_rules
% [y for x in rules.items() for y in x], # array of only rules entries
% [len(y) for x in rules.items() for y in x], # array of only rules entries
*flat_packet_data)
return packet

0
helpers/__init__.py Normal file
View File