Skip to content

Batch-adding excersises #1621

Discussion options

You must be logged in to vote

Figured it out, you need to use "file" headers (of course), e.g.
files = { 'license': (None, ''), 'license_derivative_source_url': (None, ''), 'license_author': (None, ''), 'license_object_url': (None, ''), 'is_main': (None, 'true'), 'style': (None, '1'), 'exercise_base': (None, '1252'), 'license_author_url': (None, ''), 'license_title': (None, ''), 'image': ('44-1-1.png', open(image_2, 'rb'), 'image/png'), }

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@erikderzweite
Comment options

Answer selected by erikderzweite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants