Skip to content

Commit 3b470be

Browse files
committed
empty
1 parent 60ca689 commit 3b470be

File tree

3 files changed

+4
-6691
lines changed

3 files changed

+4
-6691
lines changed

__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
import memcache
1010
import time
1111
import json
12+
import MySQLdb
1213
# Global session manager: DBSession() returns the Thread-local
1314
# session object appropriate for the current web request.
15+
con = MySQLdb.connect(host='localhost', passwd='badperson3', user='root', db='stcHong')
16+
cursor = con.cursor()
1417
maker = sessionmaker(autoflush=True, autocommit=False,
1518
extension=ZopeTransactionExtension())
1619
DBSession = scoped_session(maker)
@@ -24,6 +27,7 @@
2427
target = json.JSONDecoder().decode(source)
2528
f2=file('wartask.json')
2629
source2=f2.read()
30+
logfile = file("log.txt", "w")
2731
if source2!=None:
2832
target2 = json.JSONDecoder().decode(source2)
2933
for t in target:

dragon.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)