File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
dags/app/proposal_reminder Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 28
28
def DISCORD_PROPOSAL_REMINDER_v3 ():
29
29
@task
30
30
def SEND_PROPOSAL_SUMMARY ():
31
+ webhook_url = Variable .get ("DISCORD_PROGRAM_REMINDER_WEBHOOK" )
32
+
31
33
summary = get_proposal_summary ()
32
34
n_talk = summary ["num_proposed_talk" ]
33
35
n_tutorial = summary ["num_proposed_tutorial" ]
34
- kwargs = {
35
- "webhook_url" : Variable .get ("DISCORD_PROGRAM_REMINDER_WEBHOOK" ),
36
- "username" : "Program talk reminder" ,
37
- "msg" : f"目前投稿議程數: { n_talk } ; 課程數: { n_tutorial } " ,
38
- }
39
- discord .send_webhook_message (** kwargs )
36
+ msg = f"目前投稿議程數: { n_talk } ; 課程數: { n_tutorial } "
37
+
38
+ discord .send_webhook_message (
39
+ webhook_url = webhook_url ,
40
+ username = "Program talk reminder" ,
41
+ msg = msg ,
42
+ )
40
43
41
44
SEND_PROPOSAL_SUMMARY ()
42
45
You can’t perform that action at this time.
0 commit comments