Skip to content

Commit

Permalink
addition one level of folder {article-id}.open-issue / #166
Browse files Browse the repository at this point in the history
  • Loading branch information
eliselavy committed May 3, 2024
1 parent 2c77f47 commit 7b0533d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdhseo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def GetArticleContent_from_url(url, pid):
path = urlparse(url).path
ext = os.path.splitext(path)[1]
if ext == '.pdf':
filename = f"/{filename}/{filename}.pdf"
filename = f"{filename}.open-issue/{filename}/{filename}.pdf"
else:
filename = f"/{filename}/{filename}.xml"
filename = f"{filename}.open-issue/{filename}/{filename}.xml"
return response.content, filename


Expand Down

0 comments on commit 7b0533d

Please sign in to comment.