Skip to content

Commit

Permalink
#11 - Add main conference papers
Browse files Browse the repository at this point in the history
- Add main papers
- Add main slideslive
- Add pdf urls
  • Loading branch information
jcklie committed Oct 30, 2020
1 parent 720cbe6 commit 5e92c44
Show file tree
Hide file tree
Showing 3 changed files with 755 additions and 795 deletions.
16 changes: 1 addition & 15 deletions miniconf/load_site_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ def load_site_data(
+ site_data["srw_paper_zoom_links"]
+ site_data["cl_paper_zoom_links"]
+ site_data["tacl_paper_zoom_links"],
all_paper_slideslive_ids=site_data["main_paper_slideslive_ids"]
+ site_data["demo_paper_slideslive_ids"]
+ site_data["srw_paper_slideslive_ids"]
+ site_data["cl_paper_slideslive_ids"]
+ site_data["tacl_paper_slideslive_ids"],
paper_recs=site_data["paper_recs"],
paper_images_path=site_data["config"]["paper_images_path"],
)
Expand Down Expand Up @@ -575,7 +570,6 @@ def build_papers(
all_paper_sessions: List[Dict[str, Dict[str, Any]]],
qa_session_length_hr: int,
all_paper_zoom_links: List[Dict[str, str]],
all_paper_slideslive_ids: List[Dict[str, str]],
paper_recs: Dict[str, List[str]],
paper_images_path: str,
) -> List[Paper]:
Expand Down Expand Up @@ -615,14 +609,6 @@ def build_papers(
assert paper_session_id not in zoom_info_for_paper_session
zoom_info_for_paper_session[paper_session_id] = item

# build the lookup from paper to slideslive presentation ID
presentation_id_for_paper: Dict[str, str] = {}
for item in all_paper_slideslive_ids:
paper_id = item["UID"]
presentation_id = item["presentation_id"]
assert paper_id not in presentation_id_for_paper
presentation_id_for_paper[paper_id] = presentation_id

# build the lookup from paper to slots
sessions_for_paper: DefaultDict[str, List[SessionInfo]] = defaultdict(list)
for session_name, session_info in chain(
Expand Down Expand Up @@ -654,7 +640,7 @@ def build_papers(
card_image_path=get_card_image_path_for_paper(
item["UID"], paper_images_path
),
presentation_id=presentation_id_for_paper.get(item["UID"]),
presentation_id=item.get("presentation_id", None),
content=PaperContent(
title=item["title"],
authors=extract_list_field(item, "authors"),
Expand Down
Loading

0 comments on commit 5e92c44

Please sign in to comment.