File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
intbot/core/management/commands Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ from core .integrations .pretalx import (
2+ PRETALX_EVENTS ,
3+ download_latest_speakers ,
4+ download_latest_submissions ,
5+ )
6+ from django .core .management .base import BaseCommand
7+
8+
9+ class Command (BaseCommand ):
10+ help = "Downloads latest pretalx data"
11+
12+ def add_arguments (self , parser ):
13+ # Add keyword argument event
14+ parser .add_argument (
15+ "--event" ,
16+ choices = PRETALX_EVENTS ,
17+ help = "slug of the event (for example `europython-2025`)" ,
18+ required = True ,
19+ )
20+
21+ def handle (self , ** kwargs ):
22+ event = kwargs ["event" ]
23+
24+ self .stdout .write (f"Downloading latest speakers from pretalx... { event } " )
25+ download_latest_speakers (event )
26+
27+ self .stdout .write (f"Downloading latest submissions from pretalx... { event } " )
28+ download_latest_submissions (event )
You can’t perform that action at this time.
0 commit comments