print to debug
This commit is contained in:
@@ -652,11 +652,12 @@ def recent_actions(current_user):
|
|||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(RECENT_ACTIONS)
|
cursor.execute(RECENT_ACTIONS)
|
||||||
recent_actions = cursor.fetchall()
|
recent_actions = cursor.fetchall()
|
||||||
|
|
||||||
print(recent_actions)
|
print(recent_actions)
|
||||||
actionJS = json.dumps( [dict(ix) for ix in recent_actions] )
|
actionJS = json.dumps( [dict(ix) for ix in recent_actions] )
|
||||||
#print(productJS)
|
print(actionJS)
|
||||||
#print(productJS)
|
|
||||||
array3 = json.loads(actionJS)
|
array3 = json.loads(actionJS)
|
||||||
|
print(array3)
|
||||||
|
|
||||||
action_data = {
|
action_data = {
|
||||||
"recent_actions" : recent_actions,
|
"recent_actions" : recent_actions,
|
||||||
|
|||||||
Reference in New Issue
Block a user