31 lines
520 B
Python
31 lines
520 B
Python
import logging
|
|
import sys
|
|
import comm
|
|
import price
|
|
import sell
|
|
import trade
|
|
import avg_cost
|
|
import total_price
|
|
import traffic
|
|
import medical
|
|
import life
|
|
import relative_price_ranking
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
type = sys.argv[1] if len(sys.argv) > 1 else 'all'
|
|
log.info("同步类型:" + type)
|
|
|
|
|
|
if type == 'all':
|
|
comm.sync()
|
|
price.sync()
|
|
sell.sync()
|
|
avg_cost.sync()
|
|
trade.sync()
|
|
total_price.sync()
|
|
traffic.sync()
|
|
medical.sync()
|
|
life.sync()
|
|
relative_price_ranking.sync()
|