Merge pull request #10 from bivis/develop

run scripts
This commit is contained in:
bivis
2023-02-07 10:51:34 +03:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -11,3 +11,10 @@ RUN pip install pymongo \
requests
COPY ./ ./
RUN chmod 777 /app/configs/sources.json
RUN python update.py --config
RUN python update.py --source test

View File

@@ -7,6 +7,7 @@ class Updater:
def __init__(self):
parser = argparse.ArgumentParser(description="Source parser.")
parser.add_argument("--config", help='Update config action', action='store_true')
parser.add_argument("--source", type=str)
self.args = parser.parse_args()