Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ops
Overview
Overview
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangwei
ops
Commits
56d1e61d
Commit
56d1e61d
authored
Mar 20, 2017
by
zhangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加db.py的中文注释
parent
c86808b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
check_pay_stat.py
cms_log/cms_log/check_pay_stat.py
+2
-2
db.py
cms_log/cms_log/util/db.py
+2
-0
No files found.
cms_log/cms_log/check_pay_stat.py
View file @
56d1e61d
...
...
@@ -43,8 +43,8 @@ if __name__ == '__main__':
count
=
0
dbname
=
"summer_hill"
d
=
db
.
openMysql
(
host
,
port
,
user
,
password
,
dbname
)
#
sql='''select id,product_id,user_id,state,ctime,mtime from summer_hill.order where state='new';'''
sql
=
'''select id,product_id,user_id,state,ctime,mtime from summer_hill.order where state='closed';'''
sql
=
'''select id,product_id,user_id,state,ctime,mtime from summer_hill.order where state='new';'''
#
sql='''select id,product_id,user_id,state,ctime,mtime from summer_hill.order where state='closed';'''
c
=
d
.
cursor
()
c
.
execute
(
sql
)
rs
=
c
.
fetchall
()
...
...
cms_log/cms_log/util/db.py
View file @
56d1e61d
# -*- coding:utf8 -*-
import
os
import
times
import
sys
...
...
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