Update sources retrieval
This commit is contained in:
parent
26b5c9343e
commit
280547a85f
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue