mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
* Better user feedback during slow backend migrations This uses a tqdm progress bar to keep the user updated on the progress of the migrations. I didn't realise this was necessary until I did a migration from Mongo to Postgres on CASE, and it took quite a long time to complete, I started to doubt that it was actually making progress. Also includes a utility to help with tqdm in slow asynchronous for-loops. Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Make `async_tqdm` support async-for loops Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Reformat Signed-off-by: Toby Harradine <tobyharradine@gmail.com> * Remove unused method * Remove quotes for the return type annotation * Few style improvements Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>