Skip to content

Commit

Permalink
add plugin.bugit in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoYangyang0403 committed Sep 20, 2023
1 parent a6c11e9 commit 2958824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lyrebird_bugit/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def on_upload_files(msg):


def on_notice(msg):
conf_autoissue = application.config.get('autoissue', False)
conf_autoissue = application.config.get('plugin.bugit.autoissue', False)
if not conf_autoissue:
return
template_loader.notice_handler(msg)
2 changes: 1 addition & 1 deletion lyrebird_bugit/template_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def notice_handler(msg):
return

# Filter out messages from unconfigured extensions
checker_switch = application.config.get('autoissue.checker.switch', {})
checker_switch = application.config.get('plugin.bugit.autoissue.checker_switch', {})
sender_file = msg.get('sender', {}).get('file', '')
if sender_file not in checker_switch:
return
Expand Down

0 comments on commit 2958824

Please sign in to comment.