Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
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
Script
install.api
Commits
73a89424
Commit
73a89424
authored
Mar 13, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
受黄总压迫增加分页
parent
118f03b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
info_service.py
app/info/info_service.py
+30
-3
No files found.
app/info/info_service.py
View file @
73a89424
...
...
@@ -52,7 +52,16 @@ class InfoService(HSBaseUCService):
app_info
[
'creat_time'
]
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
(
container
[
'Created'
]))
app_info_list
.
append
(
app_info
)
return
app_info_list
page_data
=
{
"paging"
:
{
"page"
:
1
,
"per_page"
:
10
,
"total"
:
1000000000000000000000000000000000
},
"table"
:
app_info_list
}
return
page_data
def
set_upgrade_info
(
self
,
app_list
):
'''
...
...
@@ -138,7 +147,16 @@ order by A.default_version desc, A.upgrade_time desc
with
db_driver
as
session
:
data
=
session
.
query_sql
(
sql
)
return
data
page_data
=
{
"paging"
:
{
"page"
:
1
,
"per_page"
:
10
,
"total"
:
1000000000000000000000000000000000
},
"table"
:
data
}
return
page_data
def
get_upgrade_log_dtl
(
self
,
log_id
):
'''
...
...
@@ -153,4 +171,13 @@ where A.log_id={log_id}
with
db_driver
as
session
:
data
=
session
.
query_sql
(
sql
)
return
data
page_data
=
{
"paging"
:
{
"page"
:
1
,
"per_page"
:
10
,
"total"
:
1000000000000000000000000000000000
},
"table"
:
data
}
return
page_data
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