Skip to content

Commit d008f90

Browse files
committed
Refactor code to include --imports option in main.py
1 parent b9f925d commit d008f90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ async def main():
9898
col.get('params')['au']=int(args.an)
9999

100100
if args.run == 'taiga' or args.run == 'all':
101-
logger.info("Starting Taiga crawler...")
101+
logger.info("Starting Taiga ind/pictures crawler...")
102+
print(f"Imports: {args.imports}")
102103
await a_moins_b(url, 0, -1, headers)
103104
collection_tasks = [col.get('function')(url, col, headers) for col in collections]
104105

@@ -110,7 +111,8 @@ async def main():
110111
await asyncio.gather(*collection_tasks)
111112
print("Taiga crawler ended successful !!!")
112113
if args.run == 'sesame' or args.run == 'all':
113-
print("Starting import_ind...")
114+
print("Starting import_ind/pictures...")
115+
print(f"Imports: {args.imports}")
114116
start_time = datetime.now()
115117
if (args.imports == 'ind' or args.imports == 'all'):
116118
await import_ind()

0 commit comments

Comments
 (0)