File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161
6262 pbar .close ()
6363
64- # Save the data to a file
64+ # Save the data to a file
6565 filename = f"{ resource_name } _latest.json"
6666 filepath = Config .raw_path / filename
6767
Original file line number Diff line number Diff line change 77from src .utils .utils import Utils
88
99if __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+ )
1113 parser .add_argument (
1214 "-w" ,
1315 "--warn-dupes" ,
2426 args = parser .parse_args ()
2527 exclude = set (args .exclude or [])
2628
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+ )
2932 pretalx_submissions = Parse .publishable_submissions (
3033 Config .raw_path / "submissions_latest.json"
3134 )
3841 print (" done." )
3942
4043 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+ )
4248 youtube_data = Parse .youtube (Config .raw_path / "youtube_latest.json" )
4349 print (" done." )
4450 else :
7783 print (" done." )
7884
7985 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+ )
8189 pretalx_schedule = Parse .schedule (Config .raw_path / "schedule_latest.json" )
8290 print (" done." )
8391
You can’t perform that action at this time.
0 commit comments