rss: tweak migration regex
This pattern best reflects the custom formats currently in use
This commit is contained in:
parent
59ed31f5d9
commit
af2ff08c3c
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
_name = "RSS"
|
_name = "RSS"
|
||||||
def _migrate_formats(self):
|
def _migrate_formats(self):
|
||||||
count = 0
|
count = 0
|
||||||
migration_re = re.compile(r"(?:\$|{)+(?P<variable>[^}\s]+)(?:})?")
|
migration_re = re.compile(r"(?:\$|{)+(?P<variable>[^}:\s]+)(?:})?")
|
||||||
old_formats = self.bot.database.execute_fetchall("""
|
old_formats = self.bot.database.execute_fetchall("""
|
||||||
SELECT channel_id, value FROM channel_settings
|
SELECT channel_id, value FROM channel_settings
|
||||||
WHERE setting = 'rss-format'
|
WHERE setting = 'rss-format'
|
||||||
|
|
Loading…
Reference in a new issue