Exemple #1
0
def load_existing_users():
    """Loads users from the storage handler, to gain information of
    which users to ignore.
    
    @return: Set containing twitter usernames."""

    # TODO: Implement a real solution, calling the storage handler.
    if not NO_ANALYSE:
        sh = StorageHandler(SOLR_SERVER)
        mset = set([a for (a,) in sh.get_user_fields("*", "id")])
        print mset
        return mset
def redo_all_users():
    print "Redoing all users in Solr like the mythological baws."
    sh = StorageHandler(SOLR_SERVER)
    add_users(map(lambda (a,): a, sh.get_user_fields('*', 'id')))