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
bf753fcf
Commit
bf753fcf
authored
Jul 11, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a529b141
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
workspace.xml
.idea/workspace.xml
+26
-26
answer_reply.py
answer_reply.py
+1
-1
No files found.
.idea/workspace.xml
View file @
bf753fcf
...
...
@@ -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"
/>
...
...
@@ -25,12 +25,12 @@
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<counts>
<entry
key=
"py"
value=
"
785
"
/>
<entry
key=
"py"
value=
"
823
"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"Python"
value=
"
785
"
/>
<entry
key=
"Python"
value=
"
823
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -40,22 +40,22 @@
<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=
"
177
"
>
<caret
line=
"38
2"
column=
"4"
selection-start-line=
"382"
selection-start-column=
"4"
selection-end-line=
"382"
selection-end-column=
"4
"
/>
<state
relative-caret-position=
"
375
"
>
<caret
line=
"38
4"
column=
"61"
selection-start-line=
"384"
selection-start-column=
"61"
selection-end-line=
"384"
selection-end-column=
"61
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#7772#8468#0"
/>
<marker
date=
"15628
28997
000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
<marker
date=
"15628
34794
000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<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=
"18"
lean-forward=
"true"
selection-start-line=
"19"
selection-start-column=
"18"
selection-end-line=
"19"
selection-end-column=
"18
"
/>
<state
relative-caret-position=
"
360
"
>
<caret
line=
"
24"
column=
"31"
lean-forward=
"true"
selection-start-line=
"24"
selection-start-column=
"31"
selection-end-line=
"24"
selection-end-column=
"31
"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
...
...
@@ -63,11 +63,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
336
"
>
<caret
line=
"
63"
column=
"28"
selection-start-line=
"63"
selection-start-column=
"28"
selection-end-line=
"63"
selection-end-column=
"28
"
/>
<state
relative-caret-position=
"
138
"
>
<caret
line=
"
49"
column=
"31"
lean-forward=
"true"
selection-start-line=
"49"
selection-start-column=
"31"
selection-end-line=
"49"
selection-end-column=
"31
"
/>
</state>
</provider>
</entry>
...
...
@@ -130,9 +130,9 @@
<list>
<option
value=
"$PROJECT_DIR$/answer2.txt"
/>
<option
value=
"$PROJECT_DIR$/answer1.txt"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply.py"
/>
<option
value=
"$PROJECT_DIR$/reply_comment1.py"
/>
<option
value=
"$PROJECT_DIR$/auto_request.py"
/>
</list>
</option>
</component>
...
...
@@ -228,7 +228,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.
25249168
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
sideWeight=
"0.49960285"
visible=
"true"
weight=
"0.
0
"
/>
<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"
/>
...
...
@@ -430,32 +430,32 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
answer_reply
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
reply_comment1
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"336"
>
<caret
line=
"63"
column=
"28"
selection-start-line=
"63"
selection-start-column=
"28"
selection-end-line=
"63"
selection-end-column=
"28"
/>
<state
relative-caret-position=
"360"
>
<caret
line=
"24"
column=
"31"
lean-forward=
"true"
selection-start-line=
"24"
selection-start-column=
"31"
selection-end-line=
"24"
selection-end-column=
"31"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
177
"
>
<caret
line=
"38
2"
column=
"4"
selection-start-line=
"382"
selection-start-column=
"4"
selection-end-line=
"382"
selection-end-column=
"4
"
/>
<state
relative-caret-position=
"
375
"
>
<caret
line=
"38
4"
column=
"61"
selection-start-line=
"384"
selection-start-column=
"61"
selection-end-line=
"384"
selection-end-column=
"61
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#7772#8468#0"
/>
<marker
date=
"15628
28997
000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
<marker
date=
"15628
34794
000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
reply_comment1
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
answer_reply
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"285"
>
<caret
line=
"19"
column=
"18"
lean-forward=
"true"
selection-start-line=
"19"
selection-start-column=
"18"
selection-end-line=
"19"
selection-end-column=
"18"
/>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
<state
relative-caret-position=
"138"
>
<caret
line=
"49"
column=
"31"
lean-forward=
"true"
selection-start-line=
"49"
selection-start-column=
"31"
selection-end-line=
"49"
selection-end-column=
"31"
/>
</state>
</provider>
</entry>
...
...
answer_reply.py
View file @
bf753fcf
...
...
@@ -63,8 +63,8 @@ if __name__ == "__main__":
redis_client
=
set_reply_to_redis
()
have_reply
=
redis_client
.
get
(
redis_key1
)
if
have_reply
:
result
=
json
.
loads
(
str
(
have_reply
,
encoding
=
"utf-8"
))
if
result
:
redis_client
.
set
(
redis_key2
,
json
.
dumps
(
reply_data_comment
))
else
:
redis_client
.
set
(
redis_key1
,
json
.
dumps
(
reply_data_comment
))
...
...
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