From 78ad04dca322e0678573197a8421b2dbac5d5172 Mon Sep 17 00:00:00 2001 From: Tammy DiPrima Date: Wed, 1 Apr 2020 12:33:02 -0400 Subject: [PATCH] fix --- annotations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/annotations.py b/annotations.py index aa5ab7f..62beab3 100644 --- a/annotations.py +++ b/annotations.py @@ -7,7 +7,6 @@ from mongoapi import * from pathdbapi import * - usr_details = {} @@ -36,8 +35,10 @@ def get_peep(i, X): if len(rr) > 0: usr_details[creator_num] = rr['name'][0]['value'] creator_str = rr['name'][0]['value'] - else: + elif "source" in i: creator_str = X['source'] + else: + creator_str = "Computer" return creator_str.capitalize()