MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / _user_id_file_is_old

Function _user_id_file_is_old

mssqlcli/telemetry.py:188–194  ·  view source on GitHub ↗
(id_file_path)

Source from the content-addressed store, hash-verified

186
187
188def _user_id_file_is_old(id_file_path):
189 if os.path.exists(id_file_path):
190 last_24_hours = datetime.now() - timedelta(hours=24)
191 id_file_modified_time = datetime.fromtimestamp(os.path.getmtime(id_file_path))
192
193 return id_file_modified_time < last_24_hours
194 return False
195
196
197@decorators.suppress_all_exceptions(fallback_return='')

Callers 1

_get_user_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected