Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
alpha
physical
Commits
06269686
Commit
06269686
authored
Nov 26, 2018
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
8a991816
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
user.py
trans2es/models/user.py
+3
-3
No files found.
trans2es/models/user.py
View file @
06269686
...
@@ -37,7 +37,7 @@ class User(models.Model):
...
@@ -37,7 +37,7 @@ class User(models.Model):
follow_user_id_list
.
append
(
user_follow
.
follow_id
)
follow_user_id_list
.
append
(
user_follow
.
follow_id
)
follow_user_detail_list
=
list
()
follow_user_detail_list
=
list
()
sql_data_list
=
self
.
objects
.
get
(
id__in
=
follow_user_id_list
)
sql_data_list
=
User
.
objects
.
get
(
user_
id__in
=
follow_user_id_list
)
for
detail_data
in
sql_data_list
:
for
detail_data
in
sql_data_list
:
item
=
{
item
=
{
"usr_id"
:
detail_data
.
user_id
,
"usr_id"
:
detail_data
.
user_id
,
...
@@ -54,7 +54,7 @@ class User(models.Model):
...
@@ -54,7 +54,7 @@ class User(models.Model):
pick_user_id_list
.
append
(
user_pick
.
pickuser_id
)
pick_user_id_list
.
append
(
user_pick
.
pickuser_id
)
pick_user_detail_list
=
list
()
pick_user_detail_list
=
list
()
sql_data_list
=
self
.
objects
.
get
(
id__in
=
pick_user_id_list
)
sql_data_list
=
User
.
objects
.
get
(
user_
id__in
=
pick_user_id_list
)
for
detail_data
in
sql_data_list
:
for
detail_data
in
sql_data_list
:
item
=
{
item
=
{
"usr_id"
:
detail_data
.
user_id
,
"usr_id"
:
detail_data
.
user_id
,
...
@@ -74,7 +74,7 @@ class User(models.Model):
...
@@ -74,7 +74,7 @@ class User(models.Model):
same_group_user_id_list
.
append
(
user_items_list
.
user_id
)
same_group_user_id_list
.
append
(
user_items_list
.
user_id
)
same_group_detail_list
=
list
()
same_group_detail_list
=
list
()
sql_data_list
=
self
.
objects
.
get
(
id__in
=
same_group_user_id_list
)
sql_data_list
=
User
.
objects
.
get
(
user_
id__in
=
same_group_user_id_list
)
for
detail_data
in
sql_data_list
:
for
detail_data
in
sql_data_list
:
item
=
{
item
=
{
"usr_id"
:
detail_data
.
user_id
,
"usr_id"
:
detail_data
.
user_id
,
...
...
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