From e9e6536564fbc7fd3e7eaa0cb9b7c69b3e8f9900 Mon Sep 17 00:00:00 2001 From: govin08 Date: Thu, 18 Jul 2024 13:05:02 +0900 Subject: [PATCH] editing fetch_history.py. updated launch.json to use F5 in vs code --- .vscode/launch.json | 13 ++++++------- Scripts/fetch_history.py | 11 +++++++++++ analysis/0709_fetch_tables/fetch_tables.ipynb | 3 +-- 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 Scripts/fetch_history.py diff --git a/.vscode/launch.json b/.vscode/launch.json index e0a93b982..2f2ec9ce2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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}"} } ] -} \ No newline at end of file +} + diff --git a/Scripts/fetch_history.py b/Scripts/fetch_history.py new file mode 100644 index 000000000..c432cc32c --- /dev/null +++ b/Scripts/fetch_history.py @@ -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) \ No newline at end of file diff --git a/analysis/0709_fetch_tables/fetch_tables.ipynb b/analysis/0709_fetch_tables/fetch_tables.ipynb index 0b6c0556a..0b5abd554 100644 --- a/analysis/0709_fetch_tables/fetch_tables.ipynb +++ b/analysis/0709_fetch_tables/fetch_tables.ipynb @@ -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" ] },