Skip to content

Commit

Permalink
Remove double quotes from titles
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed May 14, 2024
1 parent 29a77e3 commit 802305c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/api/endpoints/curator_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def on_post(self, req, resp, req_type):
for paper_id in ids:
paper_obj = WBPaper(paper_id=paper_id, db_manager=self.db.paper)
paper_obj.load_bib_info()
pap_titles[paper_id] = paper_obj.title
pap_titles[paper_id] = paper_obj.title.replace("\"", "'")
#pap_titles = self.db.paper.get_papers_titles(paper_ids=ids) if ids else []
list_ids = ",".join(["{\"paper_id\":\"" + pap_id + "\",\"title\":\"" +
pap_titles[pap_id] + "\"}" for pap_id in ids])
Expand All @@ -367,7 +367,7 @@ def on_post(self, req, resp, req_type):
for paper_id in ids:
paper_obj = WBPaper(paper_id=paper_id, db_manager=self.db.paper)
paper_obj.load_bib_info()
pap_titles[paper_id] = paper_obj.title
pap_titles[paper_id] = paper_obj.title.replace("\"", "'")
list_ids = ",".join(["{\"paper_id\":\"" + pap_id + "\",\"title\":\"" +
pap_titles[pap_id] + "\"}" for pap_id in ids])
elif list_type == "partial":
Expand All @@ -389,7 +389,7 @@ def on_post(self, req, resp, req_type):
for paper_id in ids:
paper_obj = WBPaper(paper_id=paper_id, db_manager=self.db.paper)
paper_obj.load_bib_info()
pap_titles[paper_id] = paper_obj.title
pap_titles[paper_id] = paper_obj.title.replace("\"", "'")
list_ids = ",".join(["{\"paper_id\":\"" + pap_id + "\",\"title\":\"" +
pap_titles[pap_id] + "\"}" for pap_id in ids])
elif list_type == "empty":
Expand Down

0 comments on commit 802305c

Please sign in to comment.