Browse Source

editing fetch_history.py. updated launch.json to use F5 in vs code

master
김선중 1 year ago
parent
commit
e9e6536564
3 changed files with 18 additions and 9 deletions
  1. +6
    -7
      .vscode/launch.json
  2. +11
    -0
      Scripts/fetch_history.py
  3. +1
    -2
      analysis/0709_fetch_tables/fetch_tables.ipynb

+ 6
- 7
.vscode/launch.json View File

@ -1,16 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Current File with Arguments",
"type": "debugpy",
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": "${command:pickArgs}"
"cwd": "${workspaceFolder}",
"env": {"PYTHONPATH": "${workspaceFolder}"}
}
]
}
}

+ 11
- 0
Scripts/fetch_history.py View File

@ -0,0 +1,11 @@
import pyodbc, os, json, csv
from datetime import datetime
# 루트폴더 지정
path_root = os.path.dirname(os.path.abspath('__file__'))
with open(os.path.join(path_root, 'configs', 'config_revised.json'), 'r') as config_file:
config = json.load(config_file)
starting_time = datetime(2024, 7, 17, 18)
print(starting_time)

+ 1
- 2
analysis/0709_fetch_tables/fetch_tables.ipynb View File

@ -6,8 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"import pyodbc, os, tqdm, json, csv\n",
"import pandas as pd\n",
"import pyodbc, os, json, csv\n",
"from datetime import datetime"
]
},

Loading…
Cancel
Save