mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Skip check for BunkerWeb Pro preview plugins if already checked in the last day
This commit is contained in:
parent
c7bf53ba90
commit
ac97d3e9ac
1 changed files with 5 additions and 0 deletions
|
|
@ -192,6 +192,11 @@ try:
|
|||
message = "No BunkerWeb Pro license key provided"
|
||||
LOGGER.warning(f"{message}, only checking if there are new or updated preview versions of Pro plugins...")
|
||||
|
||||
# If we already checked in the last day, skip the check (only for preview versions)
|
||||
if not db_metadata["is_pro"] and db_metadata["last_pro_check"] and (current_date - db_metadata["last_pro_check"]).days < 1:
|
||||
LOGGER.info("Skipping the check for BunkerWeb Pro preview plugins (already checked in the last day)")
|
||||
sys_exit(0)
|
||||
|
||||
resp = get(f"{PREVIEW_ENDPOINT}/v{data['version']}.zip", timeout=5, allow_redirects=True)
|
||||
|
||||
if resp.status_code == 404:
|
||||
|
|
|
|||
Loading…
Reference in a new issue