mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
chore: add comment for analytics opt-in tracking implementation
This commit is contained in:
parent
97989dd51a
commit
0b622a6fd7
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,7 @@ class Analytics:
|
||||||
self.user_id = str(uuid.uuid4())
|
self.user_id = str(uuid.uuid4())
|
||||||
self.save_data()
|
self.save_data()
|
||||||
|
|
||||||
|
#ai add self.asked_opt_in and save/load it!
|
||||||
def load_data(self):
|
def load_data(self):
|
||||||
data_file = self.get_data_file_path()
|
data_file = self.get_data_file_path()
|
||||||
if data_file.exists():
|
if data_file.exists():
|
||||||
|
@ -65,7 +66,10 @@ class Analytics:
|
||||||
|
|
||||||
def save_data(self):
|
def save_data(self):
|
||||||
data_file = self.get_data_file_path()
|
data_file = self.get_data_file_path()
|
||||||
data = dict(uuid=self.user_id, permanently_disable=self.permanently_disable)
|
data = dict(
|
||||||
|
uuid=self.user_id,
|
||||||
|
permanently_disable=self.permanently_disable,
|
||||||
|
)
|
||||||
|
|
||||||
data_file.write_text(json.dumps(data, indent=4))
|
data_file.write_text(json.dumps(data, indent=4))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue