Move download all setting to config.py
This commit is contained in:
3
main.py
3
main.py
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from config import Config
|
||||
@@ -42,7 +41,7 @@ def main():
|
||||
if args.notes:
|
||||
Config.INVOICE_NOTES = args.notes
|
||||
if args.all_years:
|
||||
os.environ["DOWNLOAD_ALL_YEARS"] = "true"
|
||||
Config.DOWNLOAD_ALL_YEARS = True
|
||||
|
||||
try:
|
||||
Config.validate()
|
||||
|
||||
Reference in New Issue
Block a user