Skip to content

Commit

Permalink
feat: Support Actual 25.2.0 (#112)
Browse files Browse the repository at this point in the history
Adds the newly introduced columns CustomReports.sort_by and Payees.learn_categories.
  • Loading branch information
bvanelli authored Feb 6, 2025
1 parent a4f6da3 commit 684b75d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions actual/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ class CustomReports(BaseModel, table=True):
include_current: Optional[int] = Field(
default=None, sa_column=Column("include_current", Integer, server_default=text("0"))
)
sort_by: Optional[str] = Field(default=None, sa_column=Column("sort_by", Text, server_default=text("'desc'")))


class Dashboard(BaseModel, table=True):
Expand Down Expand Up @@ -505,6 +506,7 @@ class Payees(BaseModel, table=True):
default=None, sa_column=Column("transfer_acct", Text, ForeignKey("accounts.id"))
)
favorite: Optional[int] = Field(default=None, sa_column=Column("favorite", Integer, server_default=text("0")))
learn_categories: Optional[bool] = Field(sa_column=Column("learn_categories", Boolean, server_default=text("1")))

account: Optional["Accounts"] = Relationship(back_populates="payee", sa_relationship_kwargs={"uselist": False})
transactions: List["Transactions"] = Relationship(
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
services:
actual:
container_name: actual
image: docker.io/actualbudget/actual-server:25.1.0
image: docker.io/actualbudget/actual-server:25.2.0
ports:
- '5006:5006'
volumes:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from actual.queries import create_account, create_transaction

runner = CliRunner()
server_version = "24.9.0"
server_version = "25.2.0"


def base_dataset(actual: Actual, budget_name: str = "Test", encryption_password: str = None):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
get_transactions,
)

VERSIONS = ["24.10.1", "24.11.0", "24.12.0", "25.1.0"]
VERSIONS = ["25.2.0"]


@pytest.fixture(params=VERSIONS) # todo: support multiple versions at once
Expand Down

0 comments on commit 684b75d

Please sign in to comment.