Commit 05b81180 authored by Sriram Karra's avatar Sriram Karra

Minor fixes to bulk_clear_sync_flags

parent b2090d24
......@@ -339,12 +339,16 @@ class Asynk:
colls = self.get_colls()
[db1, db2] = [x.get_db() for x in colls]
hr = True
## First remove the tags for the profile from both folders
f1, t = db1.find_folder(conf.get_fid1(pname))
hr = f1.bulk_clear_sync_flags(label_re=label_re)
if f1:
hr = f1.bulk_clear_sync_flags(label_re=label_re)
f2, t = db2.find_folder(conf.get_fid2(pname))
hr = hr and f2.bulk_clear_sync_flags(label_re=label_re)
if f2:
hr = hr and f2.bulk_clear_sync_flags(label_re=label_re)
if hr:
del profiles[pname]
......
......@@ -505,7 +505,8 @@ class GCContactsFolder(Folder):
if mod:
mods.append(ce)
logging.info('Found %d contacts with matching sync tag(s). ', cnt)
logging.info('Found %d contacts with matching sync tags (%s). ',
cnt, label_re)
if cnt > 0:
logging.info('Sending modification request to Google...')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment