Skip to content

Instantly share code, notes, and snippets.

@nruigrok
Created August 31, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nruigrok/8fece67723a6546b7ca3 to your computer and use it in GitHub Desktop.
Save nruigrok/8fece67723a6546b7ca3 to your computer and use it in GitHub Desktop.
set2 = ArticleSet.objects.get(pk=17307)
lijst=[]
rij=()
for row in reader:
aid = int(row[0])
medium = int(row[2])
setid = int(row[1])
rij=(aid)
if medium is not (4,5,6,7,8,9,11,32):
if setid == 2:
lijst.append(rij)
set2.add_articles(lijst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment