-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove unnecessary intermediate alembic revision
- Loading branch information
1 parent
3aa6d25
commit 2b66f86
Showing
3 changed files
with
10 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 0 additions & 81 deletions
81
admyral/db/alembic/versions/48422348dba4_rename_control_table.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from datetime import datetime, timezone | ||
from datetime import datetime, UTC | ||
|
||
|
||
def utc_now() -> datetime: | ||
return datetime.now(timezone.utc) | ||
return datetime.now(UTC) | ||
|
||
|
||
def utc_now_timestamp_seconds() -> int: | ||
return int(datetime.now(timezone.utc).timestamp()) | ||
return int(datetime.now(UTC).timestamp()) |