Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Dec 17, 2020
1 parent 465718b commit 0c2dd90
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/masoniteorm/scopes/TimeStampsScope.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from .BaseScope import BaseScope

from ..expressions.expressions import (
UpdateQueryExpression,
)
from ..expressions.expressions import UpdateQueryExpression


class TimeStampsScope(BaseScope):
Expand Down Expand Up @@ -38,4 +36,8 @@ def set_timestamp_update(self, builder):
if not builder._model.__timestamps__:
return builder

builder._updates += (UpdateQueryExpression({"updated_at": builder._model.get_new_date().to_datetime_string()}),)
builder._updates += (
UpdateQueryExpression(
{"updated_at": builder._model.get_new_date().to_datetime_string()}
),
)

0 comments on commit 0c2dd90

Please sign in to comment.