mirror of
https://github.com/misiektoja/instagram_monitor.git
synced 2026-04-25 22:35:49 +03:00
[PR #69] [MERGED] Multiple pbar fixes #68
Labels
No labels
Stale
Stale
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/instagram_monitor#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/misiektoja/instagram_monitor/pull/69
Author: @tomballgithub
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/24/2026
Merged by: @misiektoja
Base:
dev← Head:pbar_fix📝 Commits (7)
a3a31afDuring pbar updates, send random prints only to log, not screen95975daUse current console width to set width of pbar. Screen width could be less than HORIZONTAL_LINE, which causes pbar to not be able to /r and update same line. This specifically was noticed when using RDP to access Windows Terminal but the RDP was disconnected, causing screen width to go to 10246e973dDebug statement occurs before pbar is closed, so it needs to use tqdm.write7bdef2eUse increment when calculating names/req statistic.7a4f1f1Use increment when calculating time remaining for pbarf4f5a11Calculate rate on first pbar update, rather than using 0 per TQDMea35b07fix(pbar): scope output suppression per-thread, bound ncols safely and remove unintended close debug output📊 Changes
1 file changed (+33 additions, -8 deletions)
View changed files
📝
instagram_monitor.py(+33 -8)📄 Description
During pbar updates, send random prints only to log, not screen. I tested this in single account mode. The only downside is you could miss a message that would have occurred during the pbar update. However, it's really a corner case of clicking things in the web dashboard that was causing pbar screen update issues. Those messages are not critical. If you don't want to implement this, I understand.
Use current console width to set width of pbar. Screen width could be less than HORIZONTAL_LINE, which causes pbar to not be able to /r and update the same line. This specifically was noticed when using RDP to access Windows Terminal but the RDP was disconnected, causing screen width to go to 102. The code should be OS independent, but I tested on Windows.
Downloading Followings: 0%| | 0/4454 [Initi* Downloading Followings: 0%| | 12/4454 [0.0 names/req, reqs=1, mins=0.2, * Downloading Followings: 1%|▏ | 24/4454 [6.0 names/req, reqs=2, mins=0.3, r* Downloading Followings: 1%|▏ | 36/4454 [8.0 names/req, reqs=3, mins=0.4, r* Downloading Followings: 1%|▎ | 48/4454 [9.0 names/req, reqs=4, mins=0.5, r* Downloading Followings: 1%|▎ | 60/4454 [9.6 names/req, reqs=5, mins=0.5, r* Downloading Followings: 2%|▍ | 72/4454 [10.0 names/req, reqs=6, mins=0.6, r* Downloading Followings: 2%|▍ | 84/4454 [10.3 names/req, reqs=7, mins=0.7, r* Downloading Followings: 2%|▌ | 96/4454 [10.5 names/req, reqs=8, mins=0.8, remain=34.0]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.