Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
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
xianyang
financial-system
Commits
8200adaf
Commit
8200adaf
authored
Mar 31, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并
parent
53913ec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
functions.py
libs/functions.py
+8
-7
No files found.
libs/functions.py
View file @
8200adaf
...
...
@@ -85,7 +85,9 @@ def wrapper_out():
param
.
size
=
param
.
size
if
param
.
size
else
10
ret
=
func
(
db
,
param
)
return
ret
return
inner
return
wrapper
...
...
@@ -114,11 +116,10 @@ def get_ip():
return
res
def
get_month_last_month
(
month_type
):
last_month
=
0
if
month_type
==
2
:
month_date
=
datetime
.
now
()
.
date
()
-
relativedelta
(
months
=
1
)
last_month
=
month_date
.
strftime
(
"
%
Y
%
m"
)
now_month
=
datetime
.
now
()
.
strftime
(
"
%
Y
%
m"
)
return
last_month
,
now_month
\ No newline at end of file
last_month
=
0
if
month_type
==
2
:
month_date
=
datetime
.
now
()
.
date
()
-
relativedelta
(
months
=
1
)
last_month
=
month_date
.
strftime
(
"
%
Y
%
m"
)
now_month
=
datetime
.
now
()
.
strftime
(
"
%
Y
%
m"
)
return
last_month
,
now_month
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