Skip to content
Snippets Groups Projects
Commit ab790eaa authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

fixed updload script

parent 37c1d10f
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ from helpers.ampy import (
list_remote_file_dates_and_directories,
make_remote_directory,
)
from helpers.filesystem import get_directory_tree_from_directories
from helpers.git import get_git_unclean_files
from helpers.imports import get_imported_files
......@@ -62,11 +63,7 @@ def upload_files(local_files, script, port: str, ignore_file_times=False):
else:
print(f"Skipping '{file_path}': remote file is newer")
remote_script_date = remote_file_dates.get("main.py")
if remote_file_older_or_missing(script, remote_script_date):
upload_file(port, script, "main.py")
else:
print(f"Skipping upload '{script}' as main.py: remote file is newer")
upload_file(port, script, "main.py")
def check_for_unclean_files(files_to_upload: list[str], args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment