projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d03c4
)
#393 properly checking if user is anonymous
author
Bryan
<btbonval@gmail.com>
Tue, 27 Jan 2015 19:09:39 +0000
(14:09 -0500)
committer
Bryan
<btbonval@gmail.com>
Tue, 27 Jan 2015 19:09:39 +0000
(14:09 -0500)
karmaworld/apps/notes/gdrive.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/gdrive.py
b/karmaworld/apps/notes/gdrive.py
index 3c55c8779a79e1257440dc057f56d723844be291..2ebd531292482fc341afb850b28bab019bdd9f82 100644
(file)
--- 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: