Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
airflow-dags-hub
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
唐香港
airflow-dags-hub
Commits
eadd1dbb
Commit
eadd1dbb
authored
Jul 01, 2020
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix psql
parent
b7c1c60c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
create_table_per_day.py
dags/psql/create_table_per_day.py
+1
-1
No files found.
dags/psql/create_table_per_day.py
View file @
eadd1dbb
...
@@ -30,7 +30,7 @@ end_day_in_mouth = now_time.replace(day=days_num)
...
@@ -30,7 +30,7 @@ end_day_in_mouth = now_time.replace(day=days_num)
start_day
=
end_day_in_mouth
+
timedelta
(
days
=
1
)
start_day
=
end_day_in_mouth
+
timedelta
(
days
=
1
)
month
=
start_day
.
strftime
(
'y
%
Ym
%
m'
)
month
=
start_day
.
strftime
(
'y
%
Ym
%
m'
)
week
,
days_num
=
calendar
.
monthrange
(
start_day
.
year
,
start_day
.
month
)
week
,
days_num
=
calendar
.
monthrange
(
start_day
.
year
,
start_day
.
month
)
end_day
=
start_day
+
timedelta
(
days
=
(
days_num
-
1
)
)
end_day
=
start_day
+
timedelta
(
days
=
days_num
)
end_str
=
str
(
end_day
.
date
())
end_str
=
str
(
end_day
.
date
())
start_str
=
str
(
start_day
.
date
())
start_str
=
str
(
start_day
.
date
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment