Skip to content

Commit ef7a16a

Browse files
committed
fix workflow
1 parent 44b8faa commit ef7a16a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/test-before-pr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Test before PR
22

33
on:
4-
pull_request:
5-
branches: ["main"]
4+
workflow_run:
5+
workflows:
6+
- "Pre-commit"
7+
types:
8+
- completed
69

710
jobs:
811
test:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### 1.5.0
2+
- feat: #140: Adding pre-commit with ruff as linter and code formatter.
23
- fix: #139: Fix to replicas query when using default as cluster name
34
- feat: #133: Fix simultaneous queries error when iteration is interrupted
45
- feat: #130: Add `distributed_migrations` database setting to support distributed migration queries.

clickhouse_backend/backend/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
7373
"ClickhouseDateField": "Date",
7474
"Date32Field": "Date32",
7575
"ClickhouseDateTimeField": "DateTime('UTC')" if settings.USE_TZ else "DateTime",
76-
"DateTime64Field": "DateTime64(%(precision)s, 'UTC')"
77-
if settings.USE_TZ
78-
else "DateTime64(%(precision)s)",
76+
"DateTime64Field": "DateTime64(%(precision)s, 'UTC')" if settings.USE_TZ else "DateTime64(%(precision)s)",
7977
"EnumField": "Enum",
8078
"Enum8Field": "Enum8",
8179
"Enum16Field": "Enum16",

0 commit comments

Comments
 (0)