Skip to content

Commit 5f11139

Browse files
author
Wasin Waeosri
committed
change log:
1. Update interday code to be more Pythonic
1 parent 33896d0 commit 5f11139

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ note.txt
55
test.py
66
market_price_edpgw_authentication.py
77
.vscode/
8+
interday_result.txt
9+
interday_result2.txt
10+
interday_result3.txt
11+
interday_result4.txt

trkd_interday.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ def RetrieveInteraday(token, appid):
9797
token = CreateAuthorization(username, password, appid)
9898
print('Token = %s'%(token))
9999
## if authentiacation success, continue subscribing Time Series interday
100-
if token is not None:
100+
if token:
101101
RetrieveInteraday(token, appid)

0 commit comments

Comments
 (0)