forked from LiveCarta/LiveCartaMeta
updates
This commit is contained in:
@@ -12,6 +12,4 @@ RUN pip install pymongo \
|
||||
|
||||
COPY ./ ./
|
||||
|
||||
RUN chmod 777 /app/configs/sources.json
|
||||
RUN python /app/update.py
|
||||
|
||||
CMD ["python", "update.py"]
|
||||
@@ -51,7 +51,7 @@ class AppConfig:
|
||||
new_config = {"sources": {}}
|
||||
for source in r.json():
|
||||
new_config["sources"][source["source_name"]] = source
|
||||
print(dir(new_config))
|
||||
|
||||
with open("./configs/sources.json", "w") as outfile:
|
||||
outfile.write(json.dumps(new_config))
|
||||
|
||||
|
||||
@@ -37,8 +37,6 @@ class Updater:
|
||||
print("Start Updater");
|
||||
print("Start Configure")
|
||||
self.update_config()
|
||||
print(dir(config))
|
||||
return
|
||||
if hasattr(self.args, 'source') and self.is_source_exists(self.args.source):
|
||||
print("Start source update" + self.args.source)
|
||||
self.parse_source(self.args.source)
|
||||
|
||||
Reference in New Issue
Block a user