File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 61
61
62
62
pbar .close ()
63
63
64
- # Save the data to a file
64
+ # Save the data to a file
65
65
filename = f"{ resource_name } _latest.json"
66
66
filepath = Config .raw_path / filename
67
67
Original file line number Diff line number Diff line change 7
7
from src .utils .utils import Utils
8
8
9
9
if __name__ == "__main__" :
10
- parser = ArgumentParser (description = "Transform data from Pretalx to EuroPython format and save it." )
10
+ parser = ArgumentParser (
11
+ description = "Transform data from Pretalx to EuroPython format and save it."
12
+ )
11
13
parser .add_argument (
12
14
"-w" ,
13
15
"--warn-dupes" ,
24
26
args = parser .parse_args ()
25
27
exclude = set (args .exclude or [])
26
28
27
-
28
- print (f"Parsing submissions from { Config .raw_path } /submissions_latest.json..." , end = "" )
29
+ print (
30
+ f"Parsing submissions from { Config .raw_path } /submissions_latest.json..." , end = ""
31
+ )
29
32
pretalx_submissions = Parse .publishable_submissions (
30
33
Config .raw_path / "submissions_latest.json"
31
34
)
38
41
print (" done." )
39
42
40
43
if "youtube" not in exclude :
41
- print (f"Parsing YouTube data from { Config .raw_path } /youtube_latest.json..." , end = "" )
44
+ print (
45
+ f"Parsing YouTube data from { Config .raw_path } /youtube_latest.json..." ,
46
+ end = "" ,
47
+ )
42
48
youtube_data = Parse .youtube (Config .raw_path / "youtube_latest.json" )
43
49
print (" done." )
44
50
else :
77
83
print (" done." )
78
84
79
85
if "schedule" not in exclude :
80
- print ("\n Parsing schedule from {Config.raw_path}/schedule_latest.json..." , end = "" )
86
+ print (
87
+ "\n Parsing schedule from {Config.raw_path}/schedule_latest.json..." , end = ""
88
+ )
81
89
pretalx_schedule = Parse .schedule (Config .raw_path / "schedule_latest.json" )
82
90
print (" done." )
83
91
You can’t perform that action at this time.
0 commit comments