From ef55024195bb4bd8ec928eac7a79d3cf51e5182c Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 17 Dec 2019 15:59:00 +0100 Subject: [PATCH] fix:[update v2.6] performance --- update/v2.6/Update_screenshots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update/v2.6/Update_screenshots.py b/update/v2.6/Update_screenshots.py index 2551b8d0..6d910594 100755 --- a/update/v2.6/Update_screenshots.py +++ b/update/v2.6/Update_screenshots.py @@ -81,7 +81,8 @@ if __name__ == '__main__': screenshot_sha256 = screenshot_sha256.replace('/', '') update_db(screenshot_sha256) #print('Screenshot updated: {}'.format(nb)) - r_serv_db.set('ail:current_background_script', 'screenshot updated: {}'.format(nb)) + if nb % 1000 == 0: + r_serv_db.set('ail:current_background_script', 'screenshot updated: {}'.format(nb)) r_serv_db.set('ail:current_background_script_stat', 100)