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
df1de18a
Commit
df1de18a
authored
Jul 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
9afbd4e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
38 deletions
+35
-38
workspace.xml
.idea/workspace.xml
+32
-36
auto_request.py
auto_request.py
+3
-2
No files found.
.idea/workspace.xml
View file @
df1de18a
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"7b835479-ee84-40d6-9b97-0e9285d92119"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"7b835479-ee84-40d6-9b97-0e9285d92119"
name=
"Default Changelist"
comment=
""
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/answer_reply1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/answer_reply1.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/reply_comment1.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/reply_comment1.py"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
...
@@ -44,8 +40,8 @@
...
@@ -44,8 +40,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_request.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
358
"
>
<state
relative-caret-position=
"
187
"
>
<caret
line=
"
153"
column=
"19"
lean-forward=
"true"
selection-start-line=
"153"
selection-start-column=
"19"
selection-end-line=
"153"
selection-end-column=
"19
"
/>
<caret
line=
"
389"
column=
"61"
selection-start-line=
"389"
selection-start-column=
"61"
selection-end-line=
"389"
selection-end-column=
"61
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1562834794000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
<marker
date=
"1562834794000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
...
@@ -66,8 +62,8 @@
...
@@ -66,8 +62,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply1.py"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
399
"
>
<state
relative-caret-position=
"
442
"
>
<caret
line=
"6
5"
lean-forward=
"true"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<caret
line=
"6
3"
column=
"72"
selection-start-line=
"63"
selection-start-column=
"72"
selection-end-line=
"63"
selection-end-column=
"72
"
/>
<folding>
<folding>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -78,8 +74,8 @@
...
@@ -78,8 +74,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
24
0"
>
<state
relative-caret-position=
"
18
0"
>
<caret
line=
"1
6"
column=
"60"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"60"
selection-end-line=
"16"
selection-end-column=
"60
"
/>
<caret
line=
"1
2"
column=
"43"
selection-start-line=
"12"
selection-start-column=
"43"
selection-end-line=
"12"
selection-end-column=
"43
"
/>
<folding>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -99,8 +95,8 @@
...
@@ -99,8 +95,8 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply3.py"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply3.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<state
relative-caret-position=
"
-8
"
>
<caret
line=
"
58"
column=
"57"
selection-start-line=
"58"
selection-start-column=
"57"
selection-end-line=
"58"
selection-end-column=
"57
"
/>
<caret
line=
"
34"
column=
"28"
lean-forward=
"true"
selection-start-line=
"34"
selection-start-column=
"28"
selection-end-line=
"34"
selection-end-column=
"28
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -142,8 +138,8 @@
...
@@ -142,8 +138,8 @@
<option
value=
"$PROJECT_DIR$/reply_comment2.py"
/>
<option
value=
"$PROJECT_DIR$/reply_comment2.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply3.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply3.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply2.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply2.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply1.py"
/>
<option
value=
"$PROJECT_DIR$/reply_comment1.py"
/>
<option
value=
"$PROJECT_DIR$/reply_comment1.py"
/>
<option
value=
"$PROJECT_DIR$/answer_reply1.py"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -230,7 +226,7 @@
...
@@ -230,7 +226,7 @@
<layout>
<layout>
<window_info
id=
"Structure"
order=
"0"
sideWeight=
"0.21188119"
side_tool=
"true"
weight=
"0.19112115"
/>
<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
id=
"Favorites"
order=
"1"
side_tool=
"true"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.08816521"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"2"
sideWeight=
"0.7872763"
visible=
"true"
weight=
"0.08816521"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
id=
"DB Browser"
order=
"3"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.3284974"
/>
...
@@ -240,7 +236,7 @@
...
@@ -240,7 +236,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"8"
sideWeight=
"0.49960285"
visible=
"true"
weight=
"0.0"
/>
<window_info
a
ctive=
"true"
a
nchor=
"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=
"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=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
@@ -442,10 +438,10 @@
...
@@ -442,10 +438,10 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
answer_reply3
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
reply_comment2
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
352
"
>
<state
relative-caret-position=
"
75
"
>
<caret
line=
"
58"
column=
"57"
selection-start-line=
"58"
selection-start-column=
"57"
selection-end-line=
"58"
selection-end-column=
"57
"
/>
<caret
line=
"
9"
column=
"48"
selection-start-line=
"9"
selection-start-column=
"48"
selection-end-line=
"9"
selection-end-column=
"48
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -456,45 +452,45 @@
...
@@ -456,45 +452,45 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
2
.py"
>
<entry
file=
"file://$PROJECT_DIR$/answer_reply
3
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
247
"
>
<state
relative-caret-position=
"
-8
"
>
<caret
line=
"
52"
column=
"54"
lean-forward=
"true"
selection-start-line=
"52"
selection-start-column=
"54"
selection-end-line=
"52"
selection-end-column=
"54
"
/>
<caret
line=
"
34"
column=
"28"
lean-forward=
"true"
selection-start-line=
"34"
selection-start-column=
"28"
selection-end-line=
"34"
selection-end-column=
"28
"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
reply_comment
2.py"
>
<entry
file=
"file://$PROJECT_DIR$/
answer_reply
2.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
75
"
>
<state
relative-caret-position=
"
247
"
>
<caret
line=
"
9"
column=
"48"
selection-start-line=
"9"
selection-start-column=
"48"
selection-end-line=
"9"
selection-end-column=
"48
"
/>
<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>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/a
nswer_reply1
.py"
>
<entry
file=
"file://$PROJECT_DIR$/a
uto_request
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
399
"
>
<state
relative-caret-position=
"
187
"
>
<caret
line=
"
65"
lean-forward=
"true"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<caret
line=
"
389"
column=
"61"
selection-start-line=
"389"
selection-start-column=
"61"
selection-end-line=
"389"
selection-end-column=
"61
"
/>
<folding>
<folding>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"1562834794000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/a
uto_request
.py"
>
<entry
file=
"file://$PROJECT_DIR$/a
nswer_reply1
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
358
"
>
<state
relative-caret-position=
"
442
"
>
<caret
line=
"
153"
column=
"19"
lean-forward=
"true"
selection-start-line=
"153"
selection-start-column=
"19"
selection-end-line=
"153"
selection-end-column=
"19
"
/>
<caret
line=
"
63"
column=
"72"
selection-start-line=
"63"
selection-start-column=
"72"
selection-end-line=
"63"
selection-end-column=
"72
"
/>
<folding>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<element
signature=
"e#0#14#0"
expanded=
"true"
/>
<marker
date=
"1562834794000"
expanded=
"true"
signature=
"9392:9397"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<entry
file=
"file://$PROJECT_DIR$/reply_comment1.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
24
0"
>
<state
relative-caret-position=
"
18
0"
>
<caret
line=
"1
6"
column=
"60"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"60"
selection-end-line=
"16"
selection-end-column=
"60
"
/>
<caret
line=
"1
2"
column=
"43"
selection-start-line=
"12"
selection-start-column=
"43"
selection-end-line=
"12"
selection-end-column=
"43
"
/>
<folding>
<folding>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
<element
signature=
"e#0#16#0"
expanded=
"true"
/>
</folding>
</folding>
...
...
auto_request.py
View file @
df1de18a
...
@@ -20,7 +20,6 @@ auto_reply_url = "http://earth.gmapp.env/api/v1/reply/create"
...
@@ -20,7 +20,6 @@ auto_reply_url = "http://earth.gmapp.env/api/v1/reply/create"
auto_follow_url
=
"http://earth.gmapp.env/api/v1/follow"
auto_follow_url
=
"http://earth.gmapp.env/api/v1/follow"
auto_urge_url
=
"http://earth.gmapp.env/api/v1/user/urge"
auto_urge_url
=
"http://earth.gmapp.env/api/v1/user/urge"
DATABASES
=
{
DATABASES
=
{
'default'
:
{
'default'
:
{
'ENGINE'
:
'django.db.backends.mysql'
,
'ENGINE'
:
'django.db.backends.mysql'
,
...
@@ -36,7 +35,6 @@ DATABASES = {
...
@@ -36,7 +35,6 @@ DATABASES = {
}
}
}
}
host
=
DATABASES
[
'default'
][
'HOST'
]
host
=
DATABASES
[
'default'
][
'HOST'
]
user
=
DATABASES
[
'default'
][
'USER'
]
user
=
DATABASES
[
'default'
][
'USER'
]
...
@@ -353,6 +351,9 @@ def get_answer_data():
...
@@ -353,6 +351,9 @@ def get_answer_data():
answer_data2
.
append
(
i
)
answer_data2
.
append
(
i
)
comment2
=
answer_data2
[
num1
-
1
]
comment2
=
answer_data2
[
num1
-
1
]
logging
.
info
(
"get comment1:
%
s"
%
comment1
)
logging
.
info
(
"get comment2:
%
s"
%
comment2
)
return
comment1
,
comment2
return
comment1
,
comment2
except
:
except
:
...
...
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