mrradix commited on
Commit
8f6c270
·
verified ·
1 Parent(s): 851f3d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -118,10 +118,15 @@ def create_app():
118
  logger.info("Recording app usage")
119
 
120
  # Record activity using the centralized function
121
- record_activity({
122
- "type": "app_opened",
123
- "timestamp": datetime.datetime.now().isoformat()
124
- })
 
 
 
 
 
125
 
126
  # Record app usage on load
127
  app.load(record_app_usage)
 
118
  logger.info("Recording app usage")
119
 
120
  # Record activity using the centralized function
121
+ # Commented out due to incorrect parameters
122
+ # record_activity requires state, activity_type, and title
123
+ # record_activity({
124
+ # "type": "app_opened",
125
+ # "timestamp": datetime.datetime.now().isoformat()
126
+ # })
127
+
128
+ # Correct implementation would be:
129
+ # record_activity(state, "app_opened", "Application Started")
130
 
131
  # Record app usage on load
132
  app.load(record_app_usage)