@@ -0,0 +1,828 @@
+from moves import Moves%0Afrom pymongo import MongoClient%0Afrom pymongo.errors import DuplicateKeyError%0Afrom datetime import datetime, timedelta%0Aimport logging%0Aimport pytz%0Aimport json%0Afrom dateutil import parser%0Afrom get_database import get_mode_db, get_section_db, get_trip_db, get_moves_db%0Afrom time import sleep%0Afrom collect import label_filtered_section%0A%0Aconfig_data = json.load(open('config.json'))%0Alog_base_dir = config_data%5B'paths'%5D%5B'log_base_dir'%5D%0Alogging.basicConfig(format='%25(asctime)s:%25(levelname)s:%25(message)s',%0A                    filename=%22%25s/moves_collect.log%22 %25 log_base_dir, level=logging.DEBUG)%0A%0Adef updateExistence():%0A  Sections = get_section_db()%0A  for tempSec in Sections:%0A    if ('filtered' not in tempSec.keys() or tempSec%5B'filtered'%5D is None):%0A%09%09label_filtered_section(tempSec)%0A    else:%0A      #don't update

Update Old Data