mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-11 17:00:35 +08:00
Updated run_end stats to include share limits
This commit is contained in:
parent
40eea41a29
commit
99eebb7c10
3 changed files with 11 additions and 1 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
4.0.0-develop8
|
4.0.0-develop9
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,8 @@ class Webhooks:
|
||||||
"orphaned_files_found": stats["orphaned"],
|
"orphaned_files_found": stats["orphaned"],
|
||||||
"torrents_tagged_no_hardlinks": stats["tagged_noHL"],
|
"torrents_tagged_no_hardlinks": stats["tagged_noHL"],
|
||||||
"torrents_untagged_no_hardlinks": stats["untagged_noHL"],
|
"torrents_untagged_no_hardlinks": stats["untagged_noHL"],
|
||||||
|
"torrents_updated_share_limits": stats["updated_share_limits"],
|
||||||
|
"torrents_cleaned_share_limits": stats["cleaned_share_limits"],
|
||||||
"files_deleted_from_recyclebin": stats["recycle_emptied"],
|
"files_deleted_from_recyclebin": stats["recycle_emptied"],
|
||||||
"files_deleted_from_orphaned": stats["orphaned_emptied"],
|
"files_deleted_from_orphaned": stats["orphaned_emptied"],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -408,6 +408,8 @@ def start():
|
||||||
"untagged_tracker_error": 0,
|
"untagged_tracker_error": 0,
|
||||||
"tagged_noHL": 0,
|
"tagged_noHL": 0,
|
||||||
"untagged_noHL": 0,
|
"untagged_noHL": 0,
|
||||||
|
"updated_share_limits": 0,
|
||||||
|
"cleaned_share_limits": 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
def finished_run():
|
def finished_run():
|
||||||
|
|
@ -476,8 +478,10 @@ def start():
|
||||||
if cfg.commands["share_limits"]:
|
if cfg.commands["share_limits"]:
|
||||||
share_limits = ShareLimits(qbit_manager)
|
share_limits = ShareLimits(qbit_manager)
|
||||||
stats["tagged"] += share_limits.stats_tagged
|
stats["tagged"] += share_limits.stats_tagged
|
||||||
|
stats["updated_share_limits"] += share_limits.stats_tagged
|
||||||
stats["deleted"] += share_limits.stats_deleted
|
stats["deleted"] += share_limits.stats_deleted
|
||||||
stats["deleted_contents"] += share_limits.stats_deleted_contents
|
stats["deleted_contents"] += share_limits.stats_deleted_contents
|
||||||
|
stats["cleaned_share_limits"] += share_limits.stats_deleted + share_limits.stats_deleted_contents
|
||||||
|
|
||||||
# Remove Orphaned Files
|
# Remove Orphaned Files
|
||||||
if cfg.commands["rem_orphaned"]:
|
if cfg.commands["rem_orphaned"]:
|
||||||
|
|
@ -515,6 +519,10 @@ def start():
|
||||||
stats_summary.append(f"Total {cfg.nohardlinks_tag} Torrents Tagged: {stats['tagged_noHL']}")
|
stats_summary.append(f"Total {cfg.nohardlinks_tag} Torrents Tagged: {stats['tagged_noHL']}")
|
||||||
if stats["untagged_noHL"] > 0:
|
if stats["untagged_noHL"] > 0:
|
||||||
stats_summary.append(f"Total {cfg.nohardlinks_tag} Torrents untagged: {stats['untagged_noHL']}")
|
stats_summary.append(f"Total {cfg.nohardlinks_tag} Torrents untagged: {stats['untagged_noHL']}")
|
||||||
|
if stats["updated_share_limits"] > 0:
|
||||||
|
stats_summary.append(f"Total Share Limits Updated: {stats['updated_share_limits']}")
|
||||||
|
if stats["cleaned_share_limits"] > 0:
|
||||||
|
stats_summary.append(f"Total Torrents Removed from Meeting Share Limits: {stats['cleaned_share_limits']}")
|
||||||
if stats["recycle_emptied"] > 0:
|
if stats["recycle_emptied"] > 0:
|
||||||
stats_summary.append(f"Total Files Deleted from Recycle Bin: {stats['recycle_emptied']}")
|
stats_summary.append(f"Total Files Deleted from Recycle Bin: {stats['recycle_emptied']}")
|
||||||
if stats["orphaned_emptied"] > 0:
|
if stats["orphaned_emptied"] > 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue