-
-
Save vanatteveldt/b3d682856c0eb5f9b74c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set2 = ArticleSet.objects.get(pk=17307) | |
lijst=[] | |
# rij=() # niet nodig | |
for row in reader: | |
aid = int(row[0]) | |
medium = int(row[2]) | |
setid = int(row[1]) | |
# rij=(aid) # dit doet niets | |
if medium is not (4,5,6,7,8,9,11,32): | |
if setid == 2: | |
lijst.append(aid) | |
# deze moet juist aan het eind, anders doet hij het alsnog per row | |
set2.add_articles(lijst) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment