Cheat on download with ?preview=true

This commit is contained in:
2019-09-28 23:40:16 +01:00
parent 2b4503cc56
commit 7ed67ab7c4
2 changed files with 8 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import logging
from boxsdk import Client
from pathlib import Path
from src.customBoxFile import CustomBoxFile
from src.job import Job
from src.setup import setup_logger
from src.auth_helper import init_oauth
@@ -28,6 +29,7 @@ def main():
args = parser.parse_args()
client = Client(init_oauth())
client.translator.register('file', CustomBoxFile)
q = queue.Queue()
if args.itemId is not None: