Merge pull request #22 from DavidFichtmueller/patch-1

This commit is contained in:
Seb Seager 2024-04-02 01:18:34 -04:00 committed by GitHub
commit ab73c63d7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,7 +340,7 @@ def parse_channel_history(msgs, users, check_thread=False):
usr = {"name": "", "real_name": "none"} usr = {"name": "", "real_name": "none"}
timestamp = datetime.fromtimestamp(round(float(msg["ts"]))).strftime( timestamp = datetime.fromtimestamp(round(float(msg["ts"]))).strftime(
"%m-%d-%y %H:%M:%S" "%Y-%m-%d %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]:
@ -484,7 +484,7 @@ if __name__ == "__main__":
) )
a = parser.parse_args() a = parser.parse_args()
ts = str(datetime.strftime(datetime.now(), "%m-%d-%Y_%H%M%S")) ts = str(datetime.strftime(datetime.now(), "%Y-%m-%d_%H%M%S"))
sep_str = "*" * 24 sep_str = "*" * 24
if a.o is None and a.files: if a.o is None and a.files: