include unsent posts in dump

This commit is contained in:
2025-08-09 04:35:19 +03:00
parent d236883bbe
commit 180c4720de

View File

@@ -236,7 +236,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
update.effective_message.reply_text('GTFO') update.effective_message.reply_text('GTFO')
return return
update.effective_message.reply_document( update.effective_message.reply_document(
BytesIO(json.dumps(list(qi.__json__() for qi in QueuedItem.objects.filter(config=self, processed=True)), indent=2).encode()), BytesIO(json.dumps(list(qi.__json__() for qi in QueuedItem.objects.filter(config=self)), indent=2).encode()),
filename='dump.json', filename='dump.json',
) )