fix random
This commit is contained in:
@@ -353,10 +353,10 @@ def recent_bar(current_user):
|
|||||||
"verifying" : random.randint(0, 10),
|
"verifying" : random.randint(0, 10),
|
||||||
"completed" : random.randint(0, 10),
|
"completed" : random.randint(0, 10),
|
||||||
"top_bar": [
|
"top_bar": [
|
||||||
{"id": "1", "description": "Contacts" , "last_update": "10-10-2010 11:00 AM", "value": '0' , "data_span":'Last 2 months'},
|
{"id": "1", "description": "Contacts" , "last_update": "10-10-2010 11:00 AM", "value": random.randint(0, 10) , "data_span":'Last 2 months'},
|
||||||
{"id": "2", "description": "Site Traffic" , "last_update": "10-10-2010 11:30 AM", "value": '0', "data_span":'Past 12 hours'},
|
{"id": "2", "description": "Site Traffic" , "last_update": "10-10-2010 11:30 AM", "value": random.randint(0, 10), "data_span":'Past 12 hours'},
|
||||||
{"id": "3", "description": "Appointments" , "last_update": "10-12-2010 11:30 AM", "value": '0', "data_span":'Last 14 days'},
|
{"id": "3", "description": "Appointments" , "last_update": "10-12-2010 11:30 AM", "value": random.randint(0, 10), "data_span":'Last 14 days'},
|
||||||
{"id": "4", "description": "Purchases" , "last_update": "10-12-2010 11:30 AM", "value": '0', "data_span":'Last 3 months'},
|
{"id": "4", "description": "Purchases" , "last_update": "10-12-2010 11:30 AM", "value": random.randint(0, 10), "data_span":'Last 3 months'},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
return jsonify(bar_data=bar_data)
|
return jsonify(bar_data=bar_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user