Beispiel #1
0
def daily_sync():
    start_date = VisionSyncInfo.get_daily_sync_start_date()
    end_date = VisionSyncInfo.get_daily_sync_end_date()
    if start_date:
        logger.info('daily sync. start_date=%s, end_date=%s' % (start_date, end_date))
        sync_record = VisionSyncInfo.new_instance(True, start_date, end_date)
        sync(sync_record, format_date(start_date), format_date(end_date))
Beispiel #2
0
def daily_sync():
    start_date = VisionSyncInfo.get_daily_sync_start_date()
    end_date = VisionSyncInfo.get_daily_sync_end_date()
    if start_date:
        logger.info('daily sync. start_date=%s, end_date=%s' %
                    (start_date, end_date))
        sync_record = VisionSyncInfo.new_instance(True, start_date, end_date)
        sync(sync_record, format_date(start_date), format_date(end_date))
 def test_should_get_daily_sync_end_date(self):
     self.assertEqual(VisionSyncInfo.get_daily_sync_end_date(), datetime.date(2014, 9, 25))
Beispiel #4
0
 def test_should_get_daily_sync_end_date(self):
     self.assertEqual(VisionSyncInfo.get_daily_sync_end_date(),
                      datetime.date(2014, 9, 25))