6 Commits

Author SHA1 Message Date
d4a3dee037 Merge branch 'hotfix-1.2.2' into develop 2021-03-07 11:52:31 +01:00
a35546e53d Fix removed pywikibot config property db_hostname
https://phabricator.wikimedia.org/rPWBC2d73643f70a3f3289ff83e7ec142727d79d2649c
2021-03-07 11:48:07 +01:00
661a7f6b4b Merge branch 'hotfix-1.2.1' into develop 2019-06-08 13:41:17 +02:00
e6ffd7d14a Merge branch 'hotfix-1.2.1' 2019-06-08 13:40:09 +02:00
1b82de1eab Fix #72: Markpages terminates with error
Filtering templates with wikicode as match param does not work anymore,
explicitly cast to string
2019-06-08 13:38:25 +02:00
ace17777f5 Merge branch 'release-1.2' back into develop 2018-10-05 12:38:26 +02:00
3 changed files with 8 additions and 2 deletions

View File

@@ -19,6 +19,12 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
Versions Versions
-------- --------
* v1.2.2
- Fix removed pywikibot config property db_hostname
* v1.2.1
- Fix [#72](https://git.golderweb.de/wiki/jogobot-red/issues/72)
* v1.2 * v1.2
- Create a list of redfams/articles missing reddisc notice - Create a list of redfams/articles missing reddisc notice

View File

@@ -293,7 +293,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
# Iterate over Templates with same name (if any) to search equal # Iterate over Templates with same name (if any) to search equal
# Link to decide if they are the same # Link to decide if they are the same
for present_notice in self.current_wikicode.ifilter_templates( for present_notice in self.current_wikicode.ifilter_templates(
matches=self.disc_notice.name ): matches=str(self.disc_notice.name) ):
# Get reddisc page.title of notice to add # Get reddisc page.title of notice to add
add_notice_link_tile = self.disc_notice.get( add_notice_link_tile = self.disc_notice.get(

View File

@@ -49,7 +49,7 @@ Base = declarative_base()
url = URL( "mysql+pymysql", url = URL( "mysql+pymysql",
username=config.db_username, username=config.db_username,
password=config.db_password, password=config.db_password,
host=config.db_hostname, host=config.db_hostname_format.format('tools'),
port=config.db_port, port=config.db_port,
database=( config.db_username + database=( config.db_username +
jogobot.config['redundances']['db_suffix'] ), jogobot.config['redundances']['db_suffix'] ),