forked from LiveCarta/LiveCartaMeta
update run
This commit is contained in:
@@ -13,4 +13,5 @@ RUN pip install pymongo \
|
||||
COPY ./ ./
|
||||
|
||||
RUN chmod 777 /app/configs/sources.json
|
||||
RUN python /app/update.py
|
||||
|
||||
|
||||
11
update.py
11
update.py
@@ -35,16 +35,17 @@ class Updater:
|
||||
|
||||
def do_action(self):
|
||||
print("Start Updater");
|
||||
if self.args.config:
|
||||
print("Start Configure")
|
||||
self.update_config()
|
||||
|
||||
if not self.is_source_exists(self.args.source):
|
||||
print("This source not exists, list of sources: " + ', '.join(config.get_sources_list()))
|
||||
if self.is_source_exists(self.args.source):
|
||||
print("Start source update" + self.args.source)
|
||||
self.parse_source(self.args.source)
|
||||
return
|
||||
|
||||
print("Start source update")
|
||||
self.parse_source(self.args.source)
|
||||
for source in self.args.source:
|
||||
print("Start source update" + source)
|
||||
self.parse_source(source)
|
||||
|
||||
|
||||
updater = Updater()
|
||||
|
||||
Reference in New Issue
Block a user