Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- original/file_to_fix.py
- +++ fixed/file_to_fix.py
- @@ -50,7 +50,7 @@
- if raw_msg != '':
- mqtt_client.publish(MQTT_TOPIC, pub_msg)
- f = open('messages.txt', 'a')
- - f.write('%s\\t' %datetime.now().strftime('%Y-%m-%d %H:%M'))
- + f.write('%s\\t' % datetime.now().strftime('%Y-%m-%d %H:%M'))
- f.write('%s\\t' % current_user)
- f.write('%s\\n' % raw_msg)
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement