Skip to content

Commit

Permalink
upload: don't include the section in the page title
Browse files Browse the repository at this point in the history
Change-Id: I23a6db0ca6878a9ca364cd0427487883bf2180cb
  • Loading branch information
JJMC89 committed Sep 7, 2023
1 parent 51e30e0 commit 9eb13f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pywikibot/site/_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ def ignore_warnings(warnings):

token = self.site.tokens['csrf']
result = None
file_page_title = self.filepage.title(with_ns=False)
file_page_title = self.filepage.title(
with_ns=False,
with_section=False,
)
file_size = None

# make sure file actually exists
Expand Down

0 comments on commit 9eb13f6

Please sign in to comment.