Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
cybertron
Commits
e3e43b11
Commit
e3e43b11
authored
Jul 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
6d806be0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
115 deletions
+113
-115
workspace.xml
.idea/workspace.xml
+106
-101
answer_reply1.py
answer_reply1.py
+1
-2
reply_comment1.py
reply_comment1.py
+6
-10
reply_comment3.py
reply_comment3.py
+0
-2
No files found.
.idea/workspace.xml
View file @
e3e43b11
...
...
@@ -2,7 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"7b835479-ee84-40d6-9b97-0e9285d92119"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/
reply_comment1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/reply_comment1.py
"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml
"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -13,103 +13,105 @@
<session
id=
"-334786743"
>
<usages-collector
id=
"statistics.file.extensions.open"
>
<counts>
<entry
key=
"py"
value=
"1
8
"
/>
<entry
key=
"py"
value=
"1
9
"
/>
<entry
key=
"txt"
value=
"3"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.open"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"3"
/>
<entry
key=
"Python"
value=
"1
8
"
/>
<entry
key=
"Python"
value=
"1
9
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<counts>
<entry
key=
"dummy"
value=
"1"
/>
<entry
key=
"py"
value=
"1
156
"
/>
<entry
key=
"py"
value=
"1
203
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"1"
/>
<entry
key=
"Python"
value=
"1
156
"
/>
<entry
key=
"Python"
value=
"1
203
"
/>
</counts>
</usages-collector>
</session>
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"102"
>
<caret
line=
"129"
column=
"32"
lean-forward=
"true"
selection-start-line=
"129"
selection-start-column=
"32"
selection-end-line=
"129"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1562919187000"
expanded=
"true"
signature=
"9854:9859"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"247"
>
<caret
line=
"52"
column=
"54"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"54"
selection-end-line=
"52"
selection-end-column=
"54"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"75"
>
<caret
line=
"5"
selection-start-line=
"5"
selection-end-line=
"5"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"285"
>
<caret
line=
"19"
column=
"22"
selection-start-line=
"19"
selection-start-column=
"22"
selection-end-line=
"19"
selection-end-column=
"22"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"45"
>
<caret
line=
"3"
column=
"11"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"11"
selection-end-line=
"3"
selection-end-column=
"11"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
</file>
</leaf>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.5"
>
<split-first>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"192"
>
<caret
line=
"394"
column=
"4"
selection-start-line=
"394"
selection-start-column=
"4"
selection-end-line=
"394"
selection-end-column=
"4"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1562919187000"
expanded=
"true"
signature=
"9854:9859"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"247"
>
<caret
line=
"52"
column=
"54"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"54"
selection-end-line=
"52"
selection-end-column=
"54"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-472"
>
<caret
line=
"5"
selection-start-line=
"5"
selection-end-line=
"5"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"315"
>
<caret
line=
"21"
lean-forward=
"true"
selection-start-line=
"21"
selection-end-line=
"21"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
</file>
</leaf>
</split-first>
<split-second>
<leaf>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
<caret
line=
"18"
column=
"69"
lean-forward=
"true"
selection-start-line=
"17"
selection-start-column=
"8"
selection-end-line=
"18"
selection-end-column=
"69"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</split-second>
</splitter>
</component>
<component
name=
"FileTemplateManagerImpl"
>
<option
name=
"RECENT_TEMPLATES"
>
...
...
@@ -225,7 +227,7 @@
<layout>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.21188119"
side_tool=
"true"
weight=
"0.19112115"
/>
<window_info
id=
"Favorites"
order=
"1"
side_tool=
"true"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.0
8816521
"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.0"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
...
...
@@ -235,7 +237,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
sideWeight=
"0.49960285"
visible=
"true"
weight=
"0.0"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
sideWeight=
"0.49960285"
visible=
"true"
weight=
"0.0
3156146
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
sideWeight=
"0.50039715"
side_tool=
"true"
weight=
"0.32890365"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
...
@@ -437,17 +439,24 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
answer_reply2
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
reply_comment3
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"247"
>
<caret
line=
"52"
column=
"54"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"54"
selection-end-line=
"52"
selection-end-column=
"54"
/>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/answer_reply3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"45"
>
<caret
line=
"3"
column=
"11"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"11"
selection-end-line=
"3"
selection-end-column=
"11"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
0
2"
>
<caret
line=
"
129"
column=
"32"
lean-forward=
"true"
selection-start-line=
"129"
selection-start-column=
"32"
selection-end-line=
"129"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"1
9
2"
>
<caret
line=
"
394"
column=
"4"
selection-start-line=
"394"
selection-start-column=
"4"
selection-end-line=
"394"
selection-end-column=
"4
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1562919187000"
expanded=
"true"
signature=
"9854:9859"
ph=
"..."
/>
...
...
@@ -455,38 +464,34 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
1
.py"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
2
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
75
"
>
<caret
line=
"5
"
selection-start-line=
"5"
selection-end-line=
"5"
selection-end-column=
"26
"
/>
<state
relative-caret-position=
"
247
"
>
<caret
line=
"5
2"
column=
"54"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"54"
selection-end-line=
"52"
selection-end-column=
"54
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
3
.py"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
1
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
45
"
>
<caret
line=
"
3"
column=
"11"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"11"
selection-end-line=
"3"
selection-end-column=
"11
"
/>
<state
relative-caret-position=
"
-472
"
>
<caret
line=
"
5"
selection-start-line=
"5"
selection-end-line=
"5"
selection-end-column=
"26
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/reply_comment2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/reply_comment3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"4"
column=
"26"
selection-start-line=
"4"
selection-start-column=
"26"
selection-end-line=
"4"
selection-end-column=
"26"
/>
<state
relative-caret-position=
"315"
>
<caret
line=
"21"
lean-forward=
"true"
selection-start-line=
"21"
selection-end-line=
"21"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
85
"
>
<caret
line=
"1
9"
column=
"22"
selection-start-line=
"19"
selection-start-column=
"22"
selection-end-line=
"19"
selection-end-column=
"22
"
/>
<state
relative-caret-position=
"2
70
"
>
<caret
line=
"1
8"
column=
"69"
lean-forward=
"true"
selection-start-line=
"17"
selection-start-column=
"8"
selection-end-line=
"18"
selection-end-column=
"69
"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
...
...
answer_reply1.py
View file @
e3e43b11
...
...
@@ -63,7 +63,6 @@ if __name__ == "__main__":
{
"id"
:
reply_id
,
"reply_user_id"
:
reply_user_id
,
"answer"
:
comment2
,
"topic_id"
:
i
[
1
]})
redis_client
=
set_reply_to_redis
()
logging
.
info
(
"get nowwwwwwwww:
%
s"
%
minute
)
redis_client
.
hset
(
redis_key1
,
str
(
minute
),
reply_data_comment
)
redis_client
.
hset
(
redis_key1
,
str
(
minute
),
json
.
dumps
(
reply_data_comment
))
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
reply_comment1.py
View file @
e3e43b11
...
...
@@ -9,20 +9,16 @@ from auto_request import set_reply_to_redis, reply2, login
if
__name__
==
"__main__"
:
try
:
logging
.
info
(
"get-------------------------------get "
)
now
=
datetime
.
datetime
.
now
()
.
minute
redis_key1
=
"cybertron:set_reply_id:one"
redis_client
=
set_reply_to_redis
()
logging
.
info
(
"get now -----munite:
%
s"
%
now
)
have_reply1
=
redis_client
.
hget
(
redis_key1
,
str
(
now
-
5
))
if
have_reply1
:
logging
.
info
(
"get now -----have_reply1:
%
s"
%
have_reply1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
result
:
for
item
in
result
:
cook
=
login
()
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
hdel
(
redis_key1
,
str
(
now
-
5
))
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
result
:
for
item
in
result
:
cook
=
login
()
reply2
(
cook
,
item
[
"topic_id"
],
item
[
"answer"
],
item
[
"id"
])
redis_client
.
hdel
(
redis_key1
,
str
(
now
-
5
))
except
:
logging
.
error
(
"catch exception,main:
%
s"
%
traceback
.
format_exc
())
reply_comment3.py
View file @
e3e43b11
...
...
@@ -9,9 +9,7 @@ if __name__ == "__main__":
try
:
redis_key1
=
"cybertron:set_reply_id:three"
redis_client
=
set_reply_to_redis
()
have_reply1
=
redis_client
.
get
(
redis_key1
)
result
=
json
.
loads
(
str
(
have_reply1
,
encoding
=
"utf-8"
))
if
result
:
...
...
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