Skip to content

Commit

Permalink
Remove USE_GEVENT #notests
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Oct 29, 2024
1 parent a1926ef commit 87d6f89
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bin/inbox-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
import click
from sqlalchemy import and_, or_

from inbox.config import config
from inbox.crispin import CrispinClient, writable_connection_pool
from inbox.models.account import Account
from inbox.models.backends.imap import ImapUid
from inbox.models.folder import Folder
from inbox.models.session import global_session_scope

config["USE_GEVENT"] = False


@dataclasses.dataclass
class LocalAccount:
Expand Down Expand Up @@ -117,9 +114,9 @@ def fetch_remote_folders(
class LocalFolder:
id: int
name: str
exists: int
uidnext: int
state: str
uidnext: int
exists: int


def fetch_local_folders(account: LocalAccount) -> Iterable[LocalFolder]:
Expand All @@ -141,9 +138,9 @@ def fetch_local_folders(account: LocalAccount) -> Iterable[LocalFolder]:
yield LocalFolder(
id=folder.id,
name=folder.name,
exists=exists,
uidnext=uidnext,
state=folder.imapsyncstatus.state,
uidnext=uidnext,
exists=exists,
)


Expand Down

0 comments on commit 87d6f89

Please sign in to comment.