Use short year for output directory
This commit is contained in:
parent
de688a3cce
commit
a6ea7be6df
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ def parse_channel_history(msgs, users, check_thread=False):
|
||||||
else:
|
else:
|
||||||
usr = {'name': '', 'real_name': 'none'}
|
usr = {'name': '', 'real_name': 'none'}
|
||||||
|
|
||||||
timestamp = datetime.fromtimestamp(round(float(msg['ts']))).strftime('%m-%d-%Y %H:%M:%S')
|
timestamp = datetime.fromtimestamp(round(float(msg['ts']))).strftime('%m-%d-%y %H:%M:%S')
|
||||||
text = msg['text'] if msg['text'].strip() != "" else "[no message content]"
|
text = msg['text'] if msg['text'].strip() != "" else "[no message content]"
|
||||||
for u in [x['id'] for x in users]:
|
for u in [x['id'] for x in users]:
|
||||||
text = str(text).replace('<@%s>' % u, '<@%s> (%s)' % (u, name_from_uid(u, users)))
|
text = str(text).replace('<@%s>' % u, '<@%s> (%s)' % (u, name_from_uid(u, users)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue