Exemple #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
Exemple #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
 def drop_all_annotations(self):
     db.delete(DocumentAnnotation.all().fetch(10000))
     db.delete(ArgumentationUnit.all().fetch(10000))
     db.delete(UserData.all().fetch(10000))
 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))
Exemple #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))
Exemple #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))