liang-huggingface commited on
Commit
180a8a2
·
1 Parent(s): f599270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def search_pubmed(query, retmax=5, mindate=None, maxdate=None, datetype="pdat"):
105
  if maxdate:
106
  search_kwargs["maxdate"] = maxdate
107
 
108
- handle = Entrez.esearch(search_kwargs)
109
  record = Entrez.read(handle)
110
  handle.close()
111
  idlist = record['IdList']
 
105
  if maxdate:
106
  search_kwargs["maxdate"] = maxdate
107
 
108
+ handle = Entrez.esearch(**search_kwargs)
109
  record = Entrez.read(handle)
110
  handle.close()
111
  idlist = record['IdList']