Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
b9cab51a
Commit
b9cab51a
authored
Apr 04, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230404
parent
e861b783
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apps/view_xiaocx/view.py
+2
-2
No files found.
apps/view_xiaocx/view.py
View file @
b9cab51a
...
@@ -4,7 +4,7 @@ from apps.models import *
...
@@ -4,7 +4,7 @@ from apps.models import *
from
sqlalchemy
import
extract
,
or_
,
and_
from
sqlalchemy
import
extract
,
or_
,
and_
from
apps.util
import
login_required
,
create_token
,
verify_token
from
apps.util
import
login_required
,
create_token
,
verify_token
from
apps.utils.response_code
import
RET
from
apps.utils.response_code
import
RET
#
from datetime import datetime
from
datetime
import
datetime
import
datetime
import
datetime
from
apps
import
db
,
constants
,
redis_store
from
apps
import
db
,
constants
,
redis_store
...
@@ -531,7 +531,7 @@ def consultation_list():
...
@@ -531,7 +531,7 @@ def consultation_list():
"flag"
:
cons_obj
.
flag
,
"flag"
:
cons_obj
.
flag
,
"reply_content"
:
cons_obj
.
reply_content
,
"reply_content"
:
cons_obj
.
reply_content
,
"consultation_time"
:
cons_obj
.
consultation_time
,
"consultation_time"
:
cons_obj
.
consultation_time
,
#
"reply_time": cons_obj.reply_time,
"reply_time"
:
cons_obj
.
reply_time
,
}
for
cons_obj
in
cons_obj_list
]
}
for
cons_obj
in
cons_obj_list
]
data
=
sorted
(
data
,
key
=
lambda
x
:
x
[
'consultation_time'
],
reverse
=
True
)
data
=
sorted
(
data
,
key
=
lambda
x
:
x
[
'consultation_time'
],
reverse
=
True
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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