File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 66import click
77from sqlalchemy import and_ , or_
88
9- from inbox .config import config
109from inbox .crispin import CrispinClient , writable_connection_pool
1110from inbox .models .account import Account
1211from inbox .models .backends .imap import ImapUid
1312from inbox .models .folder import Folder
1413from inbox .models .session import global_session_scope
1514
16- config ["USE_GEVENT" ] = False
17-
1815
1916@dataclasses .dataclass
2017class LocalAccount :
@@ -117,9 +114,9 @@ def fetch_remote_folders(
117114class LocalFolder :
118115 id : int
119116 name : str
120- exists : int
121- uidnext : int
122117 state : str
118+ uidnext : int
119+ exists : int
123120
124121
125122def fetch_local_folders (account : LocalAccount ) -> Iterable [LocalFolder ]:
@@ -141,9 +138,9 @@ def fetch_local_folders(account: LocalAccount) -> Iterable[LocalFolder]:
141138 yield LocalFolder (
142139 id = folder .id ,
143140 name = folder .name ,
144- exists = exists ,
145- uidnext = uidnext ,
146141 state = folder .imapsyncstatus .state ,
142+ uidnext = uidnext ,
143+ exists = exists ,
147144 )
148145
149146
You can’t perform that action at this time.
0 commit comments