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