Skip to content

Commit

Permalink
Update Window Spec File
Browse files Browse the repository at this point in the history
Preparing for release 4.6
  • Loading branch information
virresh committed Dec 29, 2020
1 parent 6fe2fc2 commit 7c24598
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions python_client/StockD_Windows.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ a = Analysis(['runner.py'],
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)

if not os.environ.get("PYINSTALLER_CEFPYTHON3_HOOK_SUCCEEDED", None):
raise SystemExit("Error: Pyinstaller hook-cefpython3.py script was "
"not executed or it failed")


pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
Expand Down
6 changes: 3 additions & 3 deletions python_client/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def process_eq(weblink, saveloc, d, get_delivery=None):
dataDate = None

if 'DATE1' in df.columns:
dataDate = get_date(df['DATE1'][0])
dataDate = get_date(df['DATE1'].iloc[0])
elif 'TIMESTAMP' in df.columns:
dataDate = get_date(df['TIMESTAMP'][0])
dataDate = get_date(df['TIMESTAMP'].iloc[0])

if not (parse(dataDate, '{0:%Y}{0:%m}{0:%d}') == parse(d, '{0:%Y}{0:%m}{0:%d}')):
getLogger().error("Date Integrity check failed. Found date {} but expected {}. Skipping.".format(dataDate, d))
Expand Down Expand Up @@ -238,7 +238,7 @@ def process_day(configs, date):
getQ().put({'event': 'log', 'data': parse(date, 'Convert Equity Bhavcopy for {0:%Y}-{0:%b}-{0:%d}')})
except Exception as e:
getLogger().info('EQ Bhavcopy failed')
getLogger().info(str(e))
getLogger().info(str(e), exc_info=e)
getQ().put({'event': 'log', 'data': parse(date, 'Cannot Find EQ Bhavcopy on selected Server for {0:%Y}-{0:%b}-{0:%d}')})

if configs['SETTINGS']['fuCheck']['value'] == 'true':
Expand Down
2 changes: 1 addition & 1 deletion python_client/scripts/windowsPackage.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
..\..\stockdenv\Scripts\pyinstaller.exe runner.py --add-data "app\static;static" --add-data "app\templates;templates" --onefile --name "StockD_Windows" --icon ".\app\static\img\favicon.ico"
..\..\stockdenv\Scripts\pyinstaller.exe runner.py --add-data "app\static;static" --add-data "app\templates;templates" --onefile --name "StockD_Windows" --icon ".\app\static\img\favicon.ico" --noconsole

python -m venv stockdenv
..\..\stockdenv\Scripts\pip.exe install Flask==1.1.2
Expand Down

0 comments on commit 7c24598

Please sign in to comment.