Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
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
黎涛
meta_base_code
Commits
d5e1a95a
Commit
d5e1a95a
authored
Sep 25, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a2f0356c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
out_put_user_post_each_strategy.py
output/out_put_user_post_each_strategy.py
+6
-6
No files found.
output/out_put_user_post_each_strategy.py
View file @
d5e1a95a
...
...
@@ -367,10 +367,10 @@ for res in sql_res:
final_projects_list
=
[]
second_demands_list
=
[]
print
(
projects_demands_id_count
)
time
.
sleep
(
10
)
print
(
second_demands_id_count
)
time
.
sleep
(
10
)
#
print(projects_demands_id_count)
#
time.sleep(10)
#
print(second_demands_id_count)
#
time.sleep(10)
for
tag_id
in
second_demands_tag_count
:
temp_dict
=
{
...
...
@@ -380,7 +380,7 @@ for tag_id in second_demands_tag_count:
"exporsure_count"
:
len
(
second_demands_id_count
[
tag_id
])
if
second_demands_id_count
.
get
(
tag_id
)
else
0
,
}
print
(
temp_dict
[
'tag_name'
],
temp_dict
[
'tractate_count'
],
temp_dict
[
'exporsure_count'
],
temp_dict
[
'device_count'
],
transaction_second_demands_dict
[
tag_id
]
)
print
(
temp_dict
[
'tag_name'
],
temp_dict
[
'tractate_count'
],
temp_dict
[
'exporsure_count'
],
temp_dict
[
'device_count'
],
transaction_second_demands_dict
.
get
(
tag_id
)
)
# print(temp_dict)
# if temp_dict['tractate_count'] < temp_dict['exporsure_count']:
# print("error" , second_demands_id_count[tag_id])
...
...
@@ -408,7 +408,7 @@ for tag_id in projects_demands_tag_count:
# if temp_dict['tractate_count'] < temp_dict['exporsure_count']:
# print("error" , projects_demands_id_count[tag_id])
print
(
temp_dict
[
'tag_name'
],
temp_dict
[
'tractate_count'
],
temp_dict
[
'exporsure_count'
],
temp_dict
[
'device_count'
],
transaction_projects_demands_type
[
tag_id
]
)
print
(
temp_dict
[
'tag_name'
],
temp_dict
[
'tractate_count'
],
temp_dict
[
'exporsure_count'
],
temp_dict
[
'device_count'
],
transaction_projects_demands_type
.
get
(
tag_id
)
)
# print(2)
# for tag_id in tags_v3_count_dict:
# if tag_id not in projects_demands_tag_count:
...
...
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