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
57ca4ec1
Commit
57ca4ec1
authored
Apr 19, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
729f0e31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
workspace.xml
.idea/workspace.xml
+9
-8
offline_comment.py
offline_comment.py
+2
-0
No files found.
.idea/workspace.xml
View file @
57ca4ec1
...
...
@@ -42,14 +42,14 @@
<entry
key=
"comment"
value=
"59"
/>
<entry
key=
"dummy"
value=
"6"
/>
<entry
key=
"guanshui"
value=
"2"
/>
<entry
key=
"py"
value=
"39
55
"
/>
<entry
key=
"py"
value=
"39
66
"
/>
<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=
"39
55
"
/>
<entry
key=
"Python"
value=
"39
66
"
/>
</counts>
</usages-collector>
</session>
...
...
@@ -141,11 +141,11 @@
<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=
"
292
"
>
<caret
line=
"
74"
column=
"86"
selection-start-line=
"74"
selection-start-column=
"86"
selection-end-line=
"74"
selection-end-column=
"86
"
/>
<state
relative-caret-position=
"
321
"
>
<caret
line=
"
52"
column=
"18"
selection-start-line=
"52"
selection-start-column=
"18"
selection-end-line=
"52"
selection-end-column=
"18
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"155566
7980000"
expanded=
"true"
signature=
"1793:179
4"
ph=
"..."
/>
<marker
date=
"155566
8230000"
expanded=
"true"
signature=
"1833:183
4"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -507,6 +507,7 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-322"
y=
"-1080"
width=
"1920"
height=
"1080"
extended-state=
"6"
/>
<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"
/>
...
...
@@ -939,11 +940,11 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/offline_comment.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
292
"
>
<caret
line=
"
74"
column=
"86"
selection-start-line=
"74"
selection-start-column=
"86"
selection-end-line=
"74"
selection-end-column=
"86
"
/>
<state
relative-caret-position=
"
321
"
>
<caret
line=
"
52"
column=
"18"
selection-start-line=
"52"
selection-start-column=
"18"
selection-end-line=
"52"
selection-end-column=
"18
"
/>
<folding>
<element
signature=
"e#0#15#0"
expanded=
"true"
/>
<marker
date=
"155566
7980000"
expanded=
"true"
signature=
"1793:179
4"
ph=
"..."
/>
<marker
date=
"155566
8230000"
expanded=
"true"
signature=
"1833:183
4"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
offline_comment.py
View file @
57ca4ec1
...
...
@@ -49,6 +49,8 @@ def get_data(num1, num2):
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
3306
)
cursor
=
pc
.
cursor
()
print
(
num1
)
print
(
num2
)
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) "
)
...
...
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