Skip to content

Commit 8fc37e3

Browse files
final code to reset the setup client and adding a new course
1 parent 853509f commit 8fc37e3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

utils/download_and_sync_courses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
# 👇 Add your course aliases here
2525
COURSE_ALIASES = [
26-
"ResolviendoProblemas2021"
26+
"ResolviendoProblemas2021",
27+
"omi-public-course"
2728
]
2829

2930
BASE_COURSE_FOLDER = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "Courses"))

utils/upload.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,7 @@ def _main() -> None:
370370
level=logging.DEBUG if args.verbose else logging.INFO)
371371
logging.getLogger('urllib3').setLevel(logging.CRITICAL)
372372

373-
client = omegaup.api.Client(username=args.username,
374-
password=args.password,
375-
api_token=args.api_token,
373+
client = omegaup.api.Client(api_token=args.api_token,
376374
url=args.url)
377375

378376
if env.get('GITHUB_ACTIONS'):

0 commit comments

Comments
 (0)