Skip to content

Commit fd5e90d

Browse files
committed
sync.
1 parent 14a50f6 commit fd5e90d

File tree

14 files changed

+70
-40
lines changed

14 files changed

+70
-40
lines changed

appengine/jstock-static/war/news_information/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<body>
55
<!--fe78440e-e0fe-4efb-881d-264a01be483c-->
66

7-
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">JStock 1.0.7.31 had been released.</p>
7+
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">JStock 1.0.7.32 had been released.</p>
88

99
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma"></p>
1010

1111
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma">
12-
Bugfix: Fix on broken URL.
12+
Bugfix: Support new version of Android app, with note feature.
1313
</p>
1414

1515
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma"></p>
1616

17-
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">You may download latest JStock 1.0.7.31 from <a href="http://jstock.org/download.html?utm_source=jstock&utm_medium=news_update">http://jstock.org/download.html</a>. After upgrade, your personal data will be preserved.</p>
17+
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">You may download latest JStock 1.0.7.32 from <a href="http://jstock.org/download.html?utm_source=jstock&utm_medium=news_update">http://jstock.org/download.html</a>. After upgrade, your personal data will be preserved.</p>
1818

1919
</body>
2020
</html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
id=ltsgi4R41y6x9GucPlNn5ls5HPDzKBIgRezXRcuYF/AjqV9XZCmyDJ9wl+KWaTed
2-
news_id=03/03/2018
2+
news_id=06/03/2018
33
news_url=http://jstock-static.appspot.com/news_information/index.html

appengine/jstock-static/war/news_information/zh/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
<body>
55
<!--fe78440e-e0fe-4efb-881d-264a01be483c-->
66

7-
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">JStock 1.0.7.31 had been released.</p>
7+
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">JStock 1.0.7.32 had been released.</p>
88

99
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma"></p>
1010

1111
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma">
12-
Bugfix: Fix on broken URL.
12+
Bugfix: Support new version of Android app, with note feature.
1313
</p>
1414

1515
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma"></p>
1616

17-
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">You may download latest JStock 1.0.7.31 from <a href="http://jstock.org/zh/download.html?utm_source=jstock&utm_medium=news_update">http://jstock.org/zh/download.html</a>. After upgrade, your personal data will be preserved.</p>
17+
<p style="margin-top: 10; font-size: 9px; font-family: Tahoma;">You may download latest JStock 1.0.7.32 from <a href="http://jstock.org/zh/download.html?utm_source=jstock&utm_medium=news_update">http://jstock.org/zh/download.html</a>. After upgrade, your personal data will be preserved.</p>
1818

1919
</body>
2020
</html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
id=ltsgi4R41y6x9GucPlNn5ls5HPDzKBIgRezXRcuYF/AjqV9XZCmyDJ9wl+KWaTed
2-
news_id=03/03/2018
2+
news_id=06/03/2018
33
news_url=http://jstock-static.appspot.com/news_information/zh/index.html
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
applicationVersionID=1160
2-
windowsDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-setup.exe
3-
linuxDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
4-
macDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
5-
solarisDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
1+
applicationVersionID=1161
2+
windowsDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-setup.exe
3+
linuxDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip
4+
macDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip
5+
solarisDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
applicationVersionID=1160
2-
windowsDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-setup.exe
3-
linuxDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
4-
macDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
5-
solarisDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-31/jstock-1.0.7.31-bin.zip
1+
applicationVersionID=1161
2+
windowsDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-setup.exe
3+
linuxDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip
4+
macDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip
5+
solarisDownloadLink=https://github.com/yccheok/jstock/releases/download/release_1-0-7-32/jstock-1.0.7.32-bin.zip

appengine/jstock-webapp/app.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,30 @@ application: jstock-webapp
22
version: 1
33
runtime: python27
44
api_version: 1
5-
threadsafe: false
5+
threadsafe: true
66

7+
# max_idle_instances: Default: automatic
8+
# max_concurrent_requests: Default: 8, Maximum: 80
9+
# min_pending_latency: Default: 30ms
10+
#automatic_scaling:
11+
# max_idle_instances: 1
12+
# max_concurrent_requests: 80
13+
# min_pending_latency: 3000ms
14+
715
handlers:
816
- url: /get-time\.py
9-
script: get-time.py
17+
script: get-time.app
1018

1119
- url: /get-ip\.py
12-
script: get-ip.py
20+
script: get-ip.app
1321

1422
- url: /missing-stock-code/.*
1523
script: missing-stock-code.app
1624
secure: always
1725

1826
- url: /slow/.*
1927
script: slow.app
20-
secure: always
28+
secure: always
29+
30+
- url: /image-search/.*
31+
script: image-search.app

appengine/jstock-webapp/get-ip.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
import webapp2
12
import time
23
import os
34

4-
ip = os.environ.get("HTTP_X_FORWARDED_FOR") or os.environ.get("REMOTE_ADDR")
5-
ip = ip.split(',')[0]
6-
7-
print 'Content-Type: text/plain'
8-
print ''
9-
print ip
5+
class GetIPHandler(webapp2.RequestHandler):
6+
def get(self):
7+
ip = os.environ.get("HTTP_X_FORWARDED_FOR") or os.environ.get("REMOTE_ADDR")
8+
ip = ip.split(',')[0]
9+
self.response.headers['Content-Type'] = 'text/plain'
10+
self.response.out.write(ip)
11+
12+
app = webapp2.WSGIApplication([
13+
('/get-ip.py', GetIPHandler)
14+
], debug=True)
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import webapp2
12
import time
23

3-
print 'Content-Type: text/plain'
4-
print ''
5-
print 'id=ltsgi4R41y6x9GucPlNn5ls5HPDzKBIgRezXRcuYF/AjqV9XZCmyDJ9wl+KWaTed'
6-
print 'time=%.0f' % (time.time() * 1000)
4+
class GetTimeHandler(webapp2.RequestHandler):
5+
def get(self):
6+
self.response.headers['Content-Type'] = 'text/plain'
7+
self.response.out.write('id=ltsgi4R41y6x9GucPlNn5ls5HPDzKBIgRezXRcuYF/AjqV9XZCmyDJ9wl+KWaTed')
8+
self.response.out.write('\n')
9+
self.response.out.write('time=%.0f' % (time.time() * 1000))
10+
11+
app = webapp2.WSGIApplication([
12+
('/get-time.py', GetTimeHandler)
13+
], debug=True)

docs/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
This file summarizes changes in JStock releases.
22
Numbers in parentheses refer to SourceForge.net tracker item numbers (#XXXXX)
33

4+
JStock 1.0.7.32 - 2018-03-06
5+
Bugfix: Support new version of Android app, with note feature.
6+
47
JStock 1.0.7.31 - 2018-03-03
58
Bugfix: Fix on broken URL.
69

0 commit comments

Comments
 (0)