mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Correct the version check logic to only check for version updates after 24 hours
This commit is contained in:
parent
742cddec02
commit
8f773eb3a6
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ def check_version(io, just_check=False, verbose=False):
|
|||
if not just_check and fname.exists():
|
||||
day = 60 * 60 * 24
|
||||
since = time.time() - fname.stat().st_mtime
|
||||
if since < day:
|
||||
if 0 < since < day:
|
||||
if verbose:
|
||||
hours = since / 60 / 60
|
||||
io.tool_output(f"Too soon to check version: {hours:.1f} hours")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue