Update sources retrieval

This commit is contained in:
Matej Focko 2020-05-25 23:51:08 +02:00
parent 26b5c9343e
commit 280547a85f
Signed by: mfocko
GPG key ID: 299B916A55682021

View file

@ -12,8 +12,11 @@ from utils import run_cmd
class MergeRequests(BaseGitCommand):
def get_files(self, submission: Submission) -> None:
# files = f"master-naostro/LoadTest/{submission.homework}.py"
files = f"master-nanecisto/nanecisto/{','.join(self.hw['files'])}"
files = f"{self.hw['prefix']}/"
if len(self.hw['files']) > 1:
files += f"{{{','.join(self.hw['files'])}}}"
else:
files += f"{self.hw['files'][0]}"
if run_cmd("rsync", "-avzP", f"aisa:{submission.path}/{files}", "./")[0] != 0:
exit(1)