webhook #271 work

This commit is contained in:
Jokob-sk
2023-07-02 08:45:57 +10:00
parent 8839ed5932
commit d1b1f078aa
5 changed files with 67 additions and 59 deletions

View File

@@ -71,6 +71,9 @@ def print_log (pText):
#-------------------------------------------------------------------------------
# textchars = bytearray({7,8,9,10,12,13,27} | set(range(0x20, 0x100)) - {0x7f})
# is_binary_string = lambda bytes: bool(bytes.translate(None, textchars))
def append_file_binary (pPath, input):
file = open (pPath, 'ab')
file.write (input)