Spaces:
Running
Running
Update smart_fallback.py
Browse files- smart_fallback.py +8 -4
smart_fallback.py
CHANGED
@@ -116,12 +116,16 @@ def smart_google_queries(metadata: dict):
|
|
116 |
queries.append(f'"{isolate}" site:ncbi.nlm.nih.gov')
|
117 |
|
118 |
if author and author!="unknown" and author!="Unpublished":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
try:
|
120 |
-
author_name = ".".join(author.split(' ')[0].split(".")[:-1]) # Use last name only
|
121 |
-
except:
|
122 |
-
try:
|
123 |
author_name = author.split(',')[0] # Use last name only
|
124 |
-
|
125 |
author_name = author
|
126 |
queries.append(f'"{author_name}" mitochondrial DNA')
|
127 |
queries.append(f'"{author_name}" mtDNA site:researchgate.net')
|
|
|
116 |
queries.append(f'"{isolate}" site:ncbi.nlm.nih.gov')
|
117 |
|
118 |
if author and author!="unknown" and author!="Unpublished":
|
119 |
+
# try:
|
120 |
+
# author_name = ".".join(author.split(' ')[0].split(".")[:-1]) # Use last name only
|
121 |
+
# except:
|
122 |
+
# try:
|
123 |
+
# author_name = author.split(',')[0] # Use last name only
|
124 |
+
# except:
|
125 |
+
# author_name = author
|
126 |
try:
|
|
|
|
|
|
|
127 |
author_name = author.split(',')[0] # Use last name only
|
128 |
+
except:
|
129 |
author_name = author
|
130 |
queries.append(f'"{author_name}" mitochondrial DNA')
|
131 |
queries.append(f'"{author_name}" mtDNA site:researchgate.net')
|