Skip to content
Snippets Groups Projects
Commit 849ba53f authored by Jake Taylor's avatar Jake Taylor
Browse files

fix points script

parent 80891e1f
No related branches found
No related tags found
1 merge request!10Points should maintain an external list of wallet to country mappings
......@@ -35,7 +35,7 @@ raw_points_log = ''
#################
def main():
global xxdot_url
global xxdot_url, raw_points_log
# Process input variables and program arguments
args = get_args()
......@@ -47,6 +47,7 @@ def main():
db_name = args['db']
db_user = args['user']
db_pass = args['pass']
raw_points_log = args['raw_points_log']
# Read Mnemonic from file and create keypair
with open(wallet_path) as file:
......@@ -412,7 +413,6 @@ def get_args():
get_args controls the argparse usage for the script. It sets up and parses
arguments and returns them in dict format
"""
global raw_points_log
parser = argparse.ArgumentParser(description="Options for point assignment script")
parser.add_argument("--verbose", action="store_true",
help="Print debug logs", default=False)
......@@ -447,7 +447,6 @@ def get_args():
level=log.DEBUG if args['verbose'] else log.INFO,
datefmt='%d-%b-%y %H:%M:%S',
filename=args["log"])
raw_points_log = args['raw_points_log']
return args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment