From 4cdb1eb6452fca99f0a780ee831676907945c1c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A2=E4=B9=90=E9=A9=AC?= <38058090+SkywalkerSpace@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:49:38 +0800 Subject: [PATCH] sdoc RepoUpdateEventHandler (#288) --- events/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/handlers.py b/events/handlers.py index d522cf13..6457e227 100644 --- a/events/handlers.py +++ b/events/handlers.py @@ -754,7 +754,7 @@ def save_file_histories(config, session, records): def should_record(config, record): """ return True if record['path'] is a specified office file """ - suffix = 'md,txt,doc,docx,xls,xlsx,ppt,pptx' + suffix = 'md,txt,doc,docx,xls,xlsx,ppt,pptx,sdoc' fh_suffix_list = get_opt_from_conf_or_env(config, 'FILE HISTORY', 'suffix', default=suffix.strip(',')) filename, suffix = splitext(record['path']) if suffix[1:] in fh_suffix_list: