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
1aec2b98
Commit
1aec2b98
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
51a1edec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
workspace.xml
.idea/workspace.xml
+6
-6
auto_commnet.py
auto_commnet.py
+5
-3
No files found.
.idea/workspace.xml
View file @
1aec2b98
...
...
@@ -40,14 +40,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"42
16
"
/>
<entry
key=
"py"
value=
"42
59
"
/>
<entry
key=
"xuqiu"
value=
"223"
/>
</counts>
</usages-collector>
<usages-collector
id=
"statistics.file.types.edit"
>
<counts>
<entry
key=
"PLAIN_TEXT"
value=
"290"
/>
<entry
key=
"Python"
value=
"42
16
"
/>
<entry
key=
"Python"
value=
"42
59
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -177,8 +177,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-32
"
>
<caret
line=
"
22"
column=
"56"
selection-start-line=
"22"
selection-start-column=
"56"
selection-end-line=
"22"
selection-end-column=
"56
"
/>
<state
relative-caret-position=
"
971
"
>
<caret
line=
"
65"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -957,8 +957,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_commnet.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-32
"
>
<caret
line=
"
22"
column=
"56"
selection-start-line=
"22"
selection-start-column=
"56"
selection-end-line=
"22"
selection-end-column=
"56
"
/>
<state
relative-caret-position=
"
971
"
>
<caret
line=
"
65"
selection-start-line=
"65"
selection-end-line=
"65
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
auto_commnet.py
View file @
1aec2b98
...
...
@@ -5,6 +5,8 @@ import pymysql
import
random
import
traceback
import
logging
from
log_settings
import
*
from
auto_request
import
login
,
time_convs
,
reply
,
get_comment
,
get_user_id
from
auto_request
import
host
,
user
,
port
,
db
,
passwd
...
...
@@ -25,8 +27,8 @@ def get_topic_id(numtime):
topic_id_list
=
[]
if
topic_id
:
for
i
in
topic_id
:
if
int
(
i
[
1
])
in
user_list
:
print
(
"----:
%
s---"
%
i
[
1
])
if
int
(
i
[
1
])
in
user_list
:
print
(
"----:
%
s---"
%
i
[
1
])
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
...
...
@@ -62,7 +64,7 @@ if __name__ == "__main__":
else
:
dicts
[
i
[
0
]]
.
append
(
i
[
1
])
logging
.
info
(
"get dicts:
%
s"
%
dicts
)
logging
.
info
(
"get dicts:
%
s"
%
dicts
)
comment
=
get_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