Jan Beníček 2024-06-25 06:21:25 +02:00
commit e8f7f7ebf6
2 changed files with 1 additions and 5 deletions

View File

@ -10,10 +10,6 @@ def run(run_number: int):
backups_dict = pterodactylReader.get_backups_list(api_client=api_client, server_id=conf.server_id)
backup_uuid = pterodactylReader.get_last_backup_id(backups_dict)
backup_url = pterodactylReader.get_backup_url(api_client=api_client, server_id=conf.server_id, backup_id=backup_uuid)
print(f"Backup UUID of try #{run_number}: {backup_uuid}")
print(f"Backup URL of try #{run_number}: {backup_url}")
time.sleep(20)
backup_local_path = fileDownloader.create_dirs_and_download(backup_url=backup_url, date=today_date, base_path=conf.save_dir)

View File

@ -30,7 +30,7 @@ def remove_old_files(today_date: datetime.datetime, keep_days: int, root_path: s
return
elif os.path.exists(file_path_creator(date=older_date, default_path=root_path)):
os.remove(file_path_creator(date=older_date, default_path=root_path))
print(f"file remover - {file_path_creator(date=older_date, default_path=root_path)}")
print(f"file remover: {file_path_creator(date=older_date, default_path=root_path)}")
last_date = datetime.datetime(year=older_date.year, month=older_date.month, day=older_date.day)