Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
taogeYT authored Dec 24, 2024
1 parent 6253e39 commit cf53b4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions appboot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pydantic import BaseModel
from sqlalchemy import JSON, DateTime, TypeDecorator, func
from sqlalchemy.orm import Mapped, declared_attr, mapped_column
from sqlalchemy.sql.selectable import ForUpdateParameter
from typing_extensions import Self

from appboot import timezone
Expand Down Expand Up @@ -67,8 +66,8 @@ async def update(self, **values: dict[str, typing.Any]):

async def refresh(
self,
attribute_names: Optional[typing.Iterable[str]] = None,
with_for_update: ForUpdateParameter = None,
attribute_names=None,
with_for_update=None,
):
await ScopedSession().refresh(self, attribute_names, with_for_update)

Expand Down

0 comments on commit cf53b4d

Please sign in to comment.