rosacastillo commited on
Commit
32faccc
·
1 Parent(s): 81b4043

updating cloud storage scrip

Browse files
Files changed (1) hide show
  1. scripts/cloud_storage.py +9 -8
scripts/cloud_storage.py CHANGED
@@ -51,6 +51,7 @@ def download_file(client, filename: str, file_path: str):
51
  def load_historical_file(client, filename: str):
52
  """Function to load one file into the cloud storage"""
53
  file_path = filename
 
54
  upload_file(client, filename, file_path)
55
 
56
 
@@ -69,14 +70,14 @@ def process_historical_files(client):
69
 
70
 
71
  if __name__ == "__main__":
72
- parser = argparse.ArgumentParser(
73
- description="Load files to the cloud storate for historical data"
74
- )
75
- parser.add_argument("param_1", type=str, help="Name of the file to upload")
76
-
77
- # Parse the arguments
78
- args = parser.parse_args()
79
- filename = args.param_1
80
 
81
  client = initialize_client()
82
  # load_historical_file(client, filename)
 
51
  def load_historical_file(client, filename: str):
52
  """Function to load one file into the cloud storage"""
53
  file_path = filename
54
+ file_path = HIST_DIR / filename
55
  upload_file(client, filename, file_path)
56
 
57
 
 
70
 
71
 
72
  if __name__ == "__main__":
73
+ # parser = argparse.ArgumentParser(
74
+ # description="Load files to the cloud storate for historical data"
75
+ # )
76
+ # parser.add_argument("param_1", type=str, help="Name of the file to upload")
77
+
78
+ # # Parse the arguments
79
+ # args = parser.parse_args()
80
+ # filename = args.param_1
81
 
82
  client = initialize_client()
83
  # load_historical_file(client, filename)