We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87615b6 commit 4290e05Copy full SHA for 4290e05
1 file changed
backend/api/app.py
@@ -26,11 +26,6 @@ def log_data():
26
27
@app.route('/get', methods=['GET'])
28
def get_stats():
29
- # Total visitors count
30
- total_visitors = data_collection.count_documents({})
31
-
32
- # Unique visitors count
33
- unique_visitors = len(data_collection.distinct("fingerprint"))
34
35
# Daily statistics
36
daily_stats = list(data_collection.aggregate([
@@ -93,8 +88,6 @@ def get_stats():
93
88
}
94
89
95
90
return jsonify({
96
- "totalVisitors": total_visitors,
97
- "uniqueVisitors": unique_visitors,
98
91
"dailyStats": daily_stats,
99
92
"monthlyStats": monthly_stats,
100
"periodStats": period_stats
0 commit comments