mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-07 04:55:10 +01:00
Python 2 and 3 compatible print statements
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import print_function
|
||||||
import datetime
|
import datetime
|
||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
@@ -342,7 +343,7 @@ def deletingbookmark(userkey, urlhash):
|
|||||||
def tags(userkey):
|
def tags(userkey):
|
||||||
""" Overview of all tags used by user """
|
""" Overview of all tags used by user """
|
||||||
tags = get_tags_for_user(userkey)
|
tags = get_tags_for_user(userkey)
|
||||||
print tags
|
print(tags)
|
||||||
return render_template('tags.html', tags=tags, userkey=userkey)
|
return render_template('tags.html', tags=tags, userkey=userkey)
|
||||||
|
|
||||||
|
|
||||||
@@ -420,10 +421,10 @@ User.create_table(True)
|
|||||||
PublicTag.create_table(True)
|
PublicTag.create_table(True)
|
||||||
|
|
||||||
users = User.select()
|
users = User.select()
|
||||||
print 'Current user keys:'
|
print('Current user keys:')
|
||||||
for user in users:
|
for user in users:
|
||||||
all_tags[user.key] = get_tags_for_user(user.key)
|
all_tags[user.key] = get_tags_for_user(user.key)
|
||||||
print user.key
|
print(user.key)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# run the application
|
# run the application
|
||||||
|
|||||||
Reference in New Issue
Block a user