Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
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
2
Merge Requests
2
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
rank
vest
Commits
f1c5e06b
Commit
f1c5e06b
authored
Dec 25, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置
parent
7994761f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
consum.py
moment/views/consum.py
+1
-1
irrigation.py
moment/views/irrigation.py
+3
-3
No files found.
moment/views/consum.py
View file @
f1c5e06b
...
...
@@ -32,7 +32,7 @@ def kafka_consum(topic_name=None):
consume_msg
=
msg_dict
[
msg_key
]
for
msg
in
consume_msg
:
card_info
=
json
.
loads
(
msg
.
value
)
if
card_info
[
'card_type'
]
==
"a
nswer
"
:
if
card_info
[
'card_type'
]
==
"a
uto_vest
"
:
logging
.
info
(
"+++++++++++++++++++++++++新的数据进来了+++++++++++++++++++++++"
)
logging
.
info
(
"get card_info:
%
s"
%
card_info
)
# 代表当天数据
...
...
moment/views/irrigation.py
View file @
f1c5e06b
...
...
@@ -21,7 +21,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
topic
=
settings
.
KAFKA_TOPIC_NAME
comment_msg_dict
=
{
"card_id"
:
card_id
,
"card_type"
:
card_type
,
"card_type"
:
"auto_vest"
,
"create_time"
:
create_time
,
"content_level"
:
content_level
,
"tag_names"
:
tag_names
,
...
...
@@ -34,7 +34,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
follow_msg_dict
=
{
"card_id"
:
card_id
,
"card_type"
:
card_type
,
"card_type"
:
"auto_vest"
,
"create_time"
:
create_time
,
"content_level"
:
content_level
,
"tag_names"
:
tag_names
,
...
...
@@ -48,7 +48,7 @@ def vest_irrigation(card_id=0, card_type=None, card_user_id=None, create_time=""
click_msg_dict
=
{
"card_id"
:
card_id
,
"card_type"
:
card_type
,
"card_type"
:
"auto_vest"
,
"create_time"
:
create_time
,
"content_level"
:
content_level
,
"tag_names"
:
tag_names
,
...
...
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