Skip to content

Commit

Permalink
Fix warning minorEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPotte committed Oct 14, 2021
1 parent 8722cef commit 4eefcf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/page_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def stop_required(username, site):
exit(0)


def save_page(current_page, page_content, summary, minor_edit=True):
def save_page(current_page, page_content, summary, is_minor=True):
result = "ok"
if debug_level > 0:
pywikibot.output("\n\03{blue}" + summary + u"\03{default}")
Expand Down Expand Up @@ -583,7 +583,7 @@ def save_page(current_page, page_content, summary, minor_edit=True):
if not summary:
summary = '[[Wiktionnaire:Structure des articles|Autoformatage]]'
try:
current_page.put(page_content, summary, minorEdit=minor_edit)
current_page.put(page_content, summary, minor=is_minor)
except pywikibot.exceptions.NoPageError as e:
print(str(e))
return
Expand Down
2 changes: 1 addition & 1 deletion src/wiktionary/fr_wiktionary_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def treat_page(page):
if not page.exists() and page.namespace() == 0:
if debug_level > 0:
print('Création d\'une redirection apostrophe')
save_page(page, '#REDIRECT[[' + page_name + ']]', 'Redirection pour apostrophe', minor_edit=True)
save_page(page, '#REDIRECT[[' + page_name + ']]', 'Redirection pour apostrophe', is_minor=True)

if debug_level == 0 and days_before_archiving and (page_name.find('<') != -1 or not has_more_than_time(page)):
return
Expand Down

0 comments on commit 4eefcf4

Please sign in to comment.