aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/llms/client.py2
-rw-r--r--gn3/llms/process.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index 41aa6b4..f205247 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -85,7 +85,7 @@ class GeneNetworkQAClient(Session):
bib_info = bib_info.removesuffix('.txt')
elif isinstance(bib_info, dict):
# Format string bibliography information
- bib_info = "{0}. ".format(bib_info.get('author', ''),
+ bib_info = "{0}.{1}.{2}.{3} ".format(bib_info.get('author', ''),
bib_info.get('title', ''),
bib_info.get('year', ''),
bib_info.get('doi', ''))
diff --git a/gn3/llms/process.py b/gn3/llms/process.py
index 4220d7a..b8e7ded 100644
--- a/gn3/llms/process.py
+++ b/gn3/llms/process.py
@@ -30,7 +30,7 @@ def formatBibliographyInfo(bibInfo):
bibInfo = bibInfo.removesuffix('.txt')
elif isinstance(bibInfo, dict):
# format string bibliography information
- bibInfo = "{0}. ".format(bibInfo['author'], bibInfo['title'], bibInfo['year'], bibInfo['doi'])
+ bibInfo = "{0}.{1}.{2}.{3} ".format(bibInfo['author'], bibInfo['title'], bibInfo['year'], bibInfo['doi'])
return bibInfo
@@ -71,7 +71,7 @@ def getTaskIDFromResult(res):
return result
def negativeStatusMsg(res):
- return 'Problems\n\tStatus code => {0}\n\tReason=> {res.reason}'.format(res.status_code, res.reason)
+ return 'Problems\n\tStatus code => {0}\n\tReason=> {1}'.format(res.status_code, res.reason) # mypy: ignore
def filterResponseText(val):
return json.loads(''.join([str(char) for char in val if char in string.printable]))