From 40fd1f1051015ddff2fbce7300bb47b88ecffef1 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 27 Jan 2015 14:09:39 -0500 Subject: [PATCH] #393 properly checking if user is anonymous --- karmaworld/apps/notes/gdrive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/gdrive.py b/karmaworld/apps/notes/gdrive.py index 3c55c87..2ebd531 100644 --- a/karmaworld/apps/notes/gdrive.py +++ b/karmaworld/apps/notes/gdrive.py @@ -240,7 +240,7 @@ def convert_raw_document(raw_document, user=None): # If we know the user who uploaded this, # associate them with the note - if user: + if user and not user.is_anonymous(): note.user = user NoteKarmaEvent.create_event(user, note, NoteKarmaEvent.UPLOAD) else: -- 2.25.1