Skip to content

Commit

Permalink
Removed print statement, added app logger instead. Removed extra prin…
Browse files Browse the repository at this point in the history
…t statements
  • Loading branch information
sharms committed Aug 4, 2010
1 parent e496110 commit 2c4b9c6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions homepage.py
Expand Up @@ -23,7 +23,6 @@
SECRET_KEY = 'ksd241241kndkndk1ndk123442ievjfiee'

app = Flask(__name__)
print app
app.config.from_object(__name__)

@app.template_filter('datetimeformat')
Expand All @@ -37,7 +36,7 @@ def connect_db():
def init_db():
"""Create the database if it doesn't exist"""
if not os.path.isfile(app.config['DATABASE']):
print "DB disappeared, making a new one"
app.logger.debug('DB disappeared, making a new one')
f = app.open_resource('schema.sql')
db = connect_db()
db.cursor().executescript(f.read())
Expand Down Expand Up @@ -76,7 +75,6 @@ def load_twitter():
g.db.cursor().execute('DELETE FROM entries WHERE source = "twitter"')

for entry in twitter.entries:
print entry
g.db.cursor().execute('INSERT INTO entries VALUES (?, ?, ?, ?, ?, ?, ?)',
(None,
entry['link'],
Expand All @@ -93,7 +91,6 @@ def load_picasa():
g.db.cursor().execute('DELETE FROM entries WHERE source = "picasa"')

for entry in picasa.entries:
print entry
g.db.cursor().execute('INSERT INTO entries VALUES (?, ?, ?, ?, ?, ?, ?)',
(None,
entry['link'],
Expand All @@ -111,7 +108,6 @@ def load_wordpress():
g.db.cursor().execute('DELETE FROM entries WHERE source = "wordpress"')

for entry in wordpress.entries:
print entry
g.db.cursor().execute('INSERT INTO entries VALUES (?, ?, ?, ?, ?, ?, ?)',
(None,
entry['link'],
Expand All @@ -128,7 +124,6 @@ def load_github():
g.db.cursor().execute('DELETE FROM entries WHERE source = "github"')

for entry in github.entries:
print entry
g.db.cursor().execute('INSERT INTO entries VALUES (?, ?, ?, ?, ?, ?, ?)',
(None,
entry['link'],
Expand Down

0 comments on commit 2c4b9c6

Please sign in to comment.