Exemplo n.º 1
0
def load_user_data(user_id):
    """
    Loads the user_id specific data for this user_id
    
    """
    user_data = UserData.all().filter('user_id =', user_id).get()

    if not user_data:
        user_data = UserData(user_id=user_id)
        user_data.put()

    return user_data
Exemplo n.º 2
0
def load_user_data(user_id):
    """
    Loads the user_id specific data for this user_id
    
    """
    user_data = UserData.all().filter('user_id =', user_id).get()

    if not user_data:
        user_data = UserData(user_id=user_id)
        user_data.put()

    return user_data
Exemplo n.º 3
0
 def drop_all_annotations(self):
     db.delete(DocumentAnnotation.all().fetch(10000))
     db.delete(ArgumentationUnit.all().fetch(10000))
     db.delete(UserData.all().fetch(10000))
Exemplo n.º 4
0
 def drop_all_data(self):
     db.delete(DocumentAnnotation.all().fetch(10000))
     db.delete(ArgumentationUnit.all().fetch(10000))
     db.delete(Document.all().fetch(10000))
     db.delete(UserData.all().fetch(10000))
     db.delete(CorpusMetadata.all().fetch(10000))
Exemplo n.º 5
0
 def drop_all_annotations(self):
     db.delete(DocumentAnnotation.all().fetch(10000))
     db.delete(ArgumentationUnit.all().fetch(10000))
     db.delete(UserData.all().fetch(10000))
Exemplo n.º 6
0
 def drop_all_data(self):
     db.delete(DocumentAnnotation.all().fetch(10000))
     db.delete(ArgumentationUnit.all().fetch(10000))
     db.delete(Document.all().fetch(10000))
     db.delete(UserData.all().fetch(10000))
     db.delete(CorpusMetadata.all().fetch(10000))