rss: tweak migration regex

This pattern best reflects the custom formats currently in use
This commit is contained in:
David Schultz 2023-06-16 21:57:32 -05:00
parent 59ed31f5d9
commit af2ff08c3c

View file

@ -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'