From 9fbe62e5e27a970dbffe04ea55aea06b41fc8030 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Tue, 30 May 2023 14:23:41 +0200
Subject: [PATCH] Properly remove the release paper from the list of
 publications citing SWIFT

---
 query.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/query.py b/query.py
index ea6490f..7f4594d 100644
--- a/query.py
+++ b/query.py
@@ -11,7 +11,7 @@ total_citations = 0
 # Process the data to make the title a string and not an array of strings
 for paper in paper_list:
     if paper.bibcode == "2023arXiv230513380S":
-        continue
+        to_remove = paper
 
     paper.title = paper.title[0]
     paper.bibstem = paper.bibstem[0]
@@ -20,7 +20,9 @@ for paper in paper_list:
     if hasattr(paper, "abstract"):
         paper.abstract = paper.abstract.replace("<P />", "")
     total_citations += paper.citation_count
-    
+
+paper_list.remove(to_remove)
+
 # Create a dictionary of cards
 my_list = dict({"num_papers": query_data.num_found,
                 "total_citations": total_citations,
-- 
GitLab