dont use print
This commit is contained in:
parent
9747f27d31
commit
2bad1b30d2
4 changed files with 3 additions and 6 deletions
|
@ -441,7 +441,7 @@ class Changelog(db.Model):
|
|||
data = peer.json(['username', 'contact'])
|
||||
action[peer_id] = [revision, timestamp, data]
|
||||
else:
|
||||
print('unknonw action', data)
|
||||
logger.debug('unknonw action %s', data)
|
||||
_changes = []
|
||||
for op in list(changes):
|
||||
if not changes[op]:
|
||||
|
|
|
@ -17,7 +17,6 @@ root_dir = dirname(settings.base_dir)
|
|||
HIDDEN = ['install_update', 'install_launcher', 'uninstall_launcher']
|
||||
|
||||
def r(*cmd):
|
||||
print(' '.join(cmd))
|
||||
return subprocess.call(cmd)
|
||||
|
||||
def version(module):
|
||||
|
|
|
@ -19,7 +19,6 @@ def parse(data, model):
|
|||
for key in ('keys', 'group', 'list', 'range', 'sort', 'query'):
|
||||
if key in data:
|
||||
query[key] = data[key]
|
||||
# print(data)
|
||||
query['qs'] = model.query
|
||||
if 'query' in data and data['query'].get('conditions'):
|
||||
conditions = []
|
||||
|
@ -96,12 +95,12 @@ def findNames(data):
|
|||
pass
|
||||
#ids = [i.id for i in q['qs'].options(load_only('id'))]
|
||||
#response['position'] = utils.get_positions(ids, [data['qs'][0].id])[0]
|
||||
print('fixme', data)
|
||||
logger.debug('fix position request %s', data)
|
||||
elif 'positions' in data:
|
||||
#ids = [i.id for i in q['qs'].options(load_only('id'))]
|
||||
#response['positions'] = utils.get_positions(ids, data['positions'])
|
||||
response['positions'] = []
|
||||
print('fixme', data)
|
||||
logger.debug('fix positions request %s', data)
|
||||
elif 'keys' in data:
|
||||
response['items'] = []
|
||||
for i in q['qs'][q['range'][0]:q['range'][1]]:
|
||||
|
|
|
@ -111,7 +111,6 @@ def find(title=None, author=None):
|
|||
'start-index':1,
|
||||
'min-viewability':'none',
|
||||
})
|
||||
print(url)
|
||||
data = read_url(url)
|
||||
feed = etree.fromstring(data,
|
||||
parser=etree.XMLParser(recover=True, no_network=True))
|
||||
|
|
Loading…
Reference in a new issue