Skip to content

Commit 0e1e784

Browse files
committed
Remove USE_GEVENT #notests
1 parent 97907ce commit 0e1e784

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

bin/inbox-summary.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
import click
77
from sqlalchemy import and_, or_
88

9-
from inbox.config import config
109
from inbox.crispin import CrispinClient, writable_connection_pool
1110
from inbox.models.account import Account
1211
from inbox.models.backends.imap import ImapUid
1312
from inbox.models.folder import Folder
1413
from inbox.models.session import global_session_scope
1514

16-
config["USE_GEVENT"] = False
17-
1815

1916
@dataclasses.dataclass
2017
class LocalAccount:
@@ -117,9 +114,9 @@ def fetch_remote_folders(
117114
class LocalFolder:
118115
id: int
119116
name: str
120-
exists: int
121-
uidnext: int
122117
state: str
118+
uidnext: int
119+
exists: int
123120

124121

125122
def 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

0 commit comments

Comments
 (0)