From ff8daba8ffff71b0baf72d7ea007820ac2ac8593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Thu, 14 Apr 2022 15:13:42 +0200 Subject: [PATCH] enabled Discord upload again --- ucetnictvi_tm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucetnictvi_tm.py b/ucetnictvi_tm.py index 0f88acb..295e6ed 100644 --- a/ucetnictvi_tm.py +++ b/ucetnictvi_tm.py @@ -206,7 +206,7 @@ with open('output_TMCZ_'+ext_date_from_filaname, 'w') as f: f.close() -sys.exit() + with open('output_TMCZ_'+ext_date_from_filaname, "rb") as f: webhook.add_file(file=f.read(), filename='output_TMCZ_'+ext_date_from_filaname)