Update app.py
Browse files
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 |
-
|
122 |
-
|
123 |
-
|
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)
|