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
01320802
Commit
01320802
authored
Apr 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
49fe5e4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
auto_comment1.py
auto_comment1.py
+1
-6
No files found.
auto_comment1.py
View file @
01320802
...
@@ -20,11 +20,11 @@ def get_data(numtime,numtime2):
...
@@ -20,11 +20,11 @@ def get_data(numtime,numtime2):
topic_id_list
=
[]
topic_id_list
=
[]
try
:
try
:
for
i
in
topic_id
and
topic_id
:
for
i
in
topic_id
and
topic_id
:
print
(
topic_id
)
cursor
.
execute
(
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
data
=
cursor
.
fetchall
()
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
user_id
:
topic_id_list
.
append
(
i
)
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
...
@@ -57,12 +57,7 @@ if __name__ == "__main__":
...
@@ -57,12 +57,7 @@ if __name__ == "__main__":
try
:
try
:
numtime1
,
numtime2
=
time_conv
(
15
,
5
)
numtime1
,
numtime2
=
time_conv
(
15
,
5
)
print
(
numtime1
)
user_id
=
get_data
(
numtime1
,
numtime2
)
user_id
=
get_data
(
numtime1
,
numtime2
)
print
(
user_id
)
dicts
=
{}
dicts
=
{}
if
user_id
:
if
user_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