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
6426d649
Commit
6426d649
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
e6b9074b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
workspace.xml
.idea/workspace.xml
+19
-20
offline_comment.py
offline_comment.py
+1
-2
No files found.
.idea/workspace.xml
View file @
6426d649
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/offline_comment.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/offline_comment.py"
afterDir=
"false"
/>
</list>
<list
default=
"true"
id=
"fd1f0b61-1139-44e5-87e7-f8b86ff52376"
name=
"Default Changelist"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -42,14 +40,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"36
52
"
/>
<entry
key=
"py"
value=
"36
71
"
/>
<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=
"36
52
"
/>
<entry
key=
"Python"
value=
"36
71
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -144,8 +142,8 @@
<file
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
34
"
>
<caret
line=
"
51"
column=
"20"
lean-forward=
"true"
selection-start-line=
"51"
selection-start-column=
"20"
selection-end-line=
"51"
selection-end-column=
"20
"
/>
<state
relative-caret-position=
"1
52
"
>
<caret
line=
"
46"
column=
"57"
selection-start-line=
"46"
selection-start-column=
"48"
selection-end-line=
"46"
selection-end-column=
"57
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -180,7 +178,7 @@
<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=
"
320
"
>
<state
relative-caret-position=
"
1365
"
>
<caret
line=
"95"
column=
"4"
selection-start-line=
"95"
selection-start-column=
"4"
selection-end-line=
"95"
selection-end-column=
"4"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
...
...
@@ -496,6 +494,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1280"
height=
"725"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<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"
/>
...
...
@@ -509,7 +508,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"
visible=
"true"
weight=
"0.
22459017
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"8"
visible=
"true"
weight=
"0.
12786885
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"9"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"10"
/>
<window_info
anchor=
"bottom"
id=
"DB Execution Console"
order=
"11"
/>
...
...
@@ -896,30 +895,30 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
click
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
320
"
>
<caret
line=
"
95"
column=
"4"
selection-start-line=
"95"
selection-start-column=
"4"
selection-end-line=
"95"
selection-end-column=
"4
"
/>
<state
relative-caret-position=
"
255
"
>
<caret
line=
"
17"
column=
"106"
selection-start-line=
"17"
selection-start-column=
"13"
selection-end-line=
"17"
selection-end-column=
"106
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
click
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
at_once
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
55
"
>
<caret
line=
"1
7"
column=
"106"
selection-start-line=
"17"
selection-start-column=
"13"
selection-end-line=
"17"
selection-end-column=
"106
"
/>
<state
relative-caret-position=
"2
70
"
>
<caret
line=
"1
8"
column=
"152"
lean-forward=
"true"
selection-start-line=
"18"
selection-start-column=
"116"
selection-end-line=
"18"
selection-end-column=
"152
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/auto_
at_once
.py"
>
<entry
file=
"file://$PROJECT_DIR$/auto_
request
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
270
"
>
<caret
line=
"
18"
column=
"152"
lean-forward=
"true"
selection-start-line=
"18"
selection-start-column=
"116"
selection-end-line=
"18"
selection-end-column=
"152
"
/>
<state
relative-caret-position=
"
1365
"
>
<caret
line=
"
95"
column=
"4"
selection-start-line=
"95"
selection-start-column=
"4"
selection-end-line=
"95"
selection-end-column=
"4
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
@@ -928,8 +927,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
34
"
>
<caret
line=
"
51"
column=
"20"
lean-forward=
"true"
selection-start-line=
"51"
selection-start-column=
"20"
selection-end-line=
"51"
selection-end-column=
"20
"
/>
<state
relative-caret-position=
"1
52
"
>
<caret
line=
"
46"
column=
"57"
selection-start-line=
"46"
selection-start-column=
"48"
selection-end-line=
"46"
selection-end-column=
"57
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
</folding>
...
...
offline_comment.py
View file @
6426d649
...
...
@@ -44,8 +44,7 @@ def get_data(num1, num2):
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
.
execute
(
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > "
+
str
(
num1
)
+
" and id <= "
+
str
(
num2
)
+
") and (content_level = 4 or content_level = 5) "
)
"SELECT id,user_id FROM topic WHERE is_online =1 and (id > 0 and id <= 10000) and (content_level = 4 or content_level = 5) "
)
data
=
cursor
.
fetchall
()
topic_id
=
list
(
data
)
logging
.
info
(
"Database version :
%
s "
%
topic_id
)
...
...
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