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
5ae9b543
Commit
5ae9b543
authored
Nov 23, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8ea21530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
spark_test.py
task/spark_test.py
+2
-6
No files found.
task/spark_test.py
View file @
5ae9b543
...
@@ -204,7 +204,8 @@ WHERE spam_pv.device_id IS NULL
...
@@ -204,7 +204,8 @@ WHERE spam_pv.device_id IS NULL
portrait_dict
[
demand
][
tag
]
+=
1
portrait_dict
[
demand
][
tag
]
+=
1
else
:
else
:
portrait_dict
[
demand
][
tag
]
=
1
portrait_dict
[
demand
][
tag
]
=
1
if
tag
in
kyc_str_list
and
demand
==
"projects"
:
portrait_dict
[
"projects"
][
demand
]
-=
1
except
Exception
as
e
:
except
Exception
as
e
:
print
(
"error "
,
e
)
print
(
"error "
,
e
)
...
@@ -213,11 +214,6 @@ WHERE spam_pv.device_id IS NULL
...
@@ -213,11 +214,6 @@ WHERE spam_pv.device_id IS NULL
count_not_has_portratit
+=
1
count_not_has_portratit
+=
1
no_portrait_device_id_list
.
append
(
res
.
device_id
)
no_portrait_device_id_list
.
append
(
res
.
device_id
)
for
key
in
kyc_str_list
:
try
:
portrait_dict
[
"projects"
][
key
]
-=
1
except
:
continue
print
(
portrait_dict
)
print
(
portrait_dict
)
print
(
count_user_count
+
1
,
count_not_has_portratit
)
print
(
count_user_count
+
1
,
count_not_has_portratit
)
...
...
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