def migrate_locations(): all_locations = model_datastore.get_all_location_updates() for update_list in all_locations.values(): traj = update_list[0] if len(traj) > 1: model_datastore.store_new_trajectory_update(new_trajectory=traj, \ drawn_by_hand=False) return "Stored em"
def get_location_updates(): unfiltered = model_datastore.get_all_location_updates() #tasks.upload_clusters() #tasks.upload_partitioned_trajectories() #task_queue = tasks.get_trajectory_filter_queue() #task_queue.enqueue(tasks.filter_trajectories) print "Just enqueued a task to filter trajectories BEEF." return jsonify(unfiltered)