From: yamat0jp Date: Fri, 1 Sep 2017 14:52:21 +0000 (+0900) Subject: upgrade master table X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=57cf5d27409730764c064b64b5e3ff69a3e726b2;p=pybbs%2Fpybbs.git upgrade master table --- diff --git a/index.py b/index.py index bf198f3..7b53e7d 100755 --- a/index.py +++ b/index.py @@ -423,12 +423,29 @@ class MasterHandler(BaseHandler): else: raise tornado.web.HTTPError(404) +class AlartHandler(UserHandler): + def get(self): + db = self.get_query_argument('db') + num = self.get_query_argument('num') + self.table = self.application.db.table(db) + tb = self.table.get(where('number') == int(num)) + s = self.page(int(num)) + link = '

{0},{2}'.format(db,s,num) + if 'master' in self.application.db.tables(): + time = datetime.now() + data = {'comment':tb['raw']+link,'time':time.strftime('%Y/%m/%d')} + self.application.db.table('master').insert(data) + if s == '': + self.redirect('/{0}#{1}'.format(db,num)) + else: + self.redirect('/{0}{1}#{2}'.format(db,s,num)) + class Application(tornado.web.Application): def __init__(self): self.db = TinyDB(st.json) handlers = [(r'/',NaviHandler),(r'/login',LoginHandler),(r'/logout',LogoutHandler),(r'/title',TitleHandler), (r'/headline/api',HeadlineApi),(r'/read/api/([a-zA-Z0-9_]+)/([0-9]+)',ArticleApi),(r'/write/api/([a-zA-Z0-9_]+)',ArticleApi), - (r'/help',HelpHandler),(r'/master',MasterHandler), + (r'/help',HelpHandler),(r'/master',MasterHandler),(r'/alart',AlartHandler), (r'/([a-zA-Z0-9_]+)',IndexHandler),(r'/([a-zA-Z0-9_]+)/([0-9]+)/*',IndexHandler), (r'/([a-zA-Z0-9_]+)/admin/([0-9]+)/*',AdminHandler),(r'/([a-zA-Z0-9_]+)/admin/([a-z]+)/*',AdminConfHandler),(r'/([a-zA-Z0-9_]+)/userdel',UserHandler), (r'/([a-zA-Z0-9_]+)/search',SearchHandler),(r'/([a-zA-Z0-9_]+)/regist',RegistHandler)] diff --git a/static/db/db.json b/static/db/db.json index a3b950e..fab03e0 100644 --- a/static/db/db.json +++ b/static/db/db.json @@ -1 +1 @@ -{"bbs2": {}, "bbs": {"1": {"comment": "

\u3053\u306e\u63b2\u793a\u677f\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u4f55\u304c\u3059\u3054\u3044\u306e\u304b\u5229\u7528\u8005\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3051\u308c\u3069\u3001\u7ba1\u7406\u8005\u306f\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u7c21\u5358\u306b\u904b\u7528\u3067\u304d\u307e\u3059\u3002heroku\u3067git\u3059\u308c\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30a2\u3057\u3066\u3059\u3050\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u6c17\u306b\u3057\u306a\u3044\u4eba\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002\r\n

\u3000tornado\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304b\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u5927\u5909\u7c21\u7d20\u3067\u3059\u3002\u306a\u304a\u304b\u3064\u30d6\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30c3\u30d7\u304c\u30b0\u30ec\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n

\u3000\u63b2\u793a\u677f\u306e\u7ba1\u7406\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u3067\u3059\u304c\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u8ffd\u52a0\u306f\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u8ffd\u52a0\u3057\u305f\u3044URL\u3092\u6253\u3061\u8fbc\u3080\u3060\u3051\u3002\u305d\u3046\u3059\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u305f\u65b0\u3057\u3044\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n

\u3000\u3055\u3042\u4f7f\u3044\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u304b\u3002

", "date": "2016/11/22 19:43", "title": "\u3053\u306eBBS\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u3002\u3002\uff20\uff20\uff1b", "name": "\u7ba1\u7406\u8005", "number": 1, "password": "admin", "raw": "\u3053\u306e\u63b2\u793a\u677f\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u4f55\u304c\u3059\u3054\u3044\u306e\u304b\u5229\u7528\u8005\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3051\u308c\u3069\u3001\u7ba1\u7406\u8005\u306f\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u7c21\u5358\u306b\u904b\u7528\u3067\u304d\u307e\u3059\u3002heroku\u3067git\u3059\u308c\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30a2\u3057\u3066\u3059\u3050\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u6c17\u306b\u3057\u306a\u3044\u4eba\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002\r\n\u3000tornado\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304b\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u5927\u5909\u7c21\u7d20\u3067\u3059\u3002\u306a\u304a\u304b\u3064\u30d6\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30c3\u30d7\u304c\u30b0\u30ec\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n\u3000\u63b2\u793a\u677f\u306e\u7ba1\u7406\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u3067\u3059\u304c\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u8ffd\u52a0\u306f\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u8ffd\u52a0\u3057\u305f\u3044URL\u3092\u6253\u3061\u8fbc\u3080\u3060\u3051\u3002\u305d\u3046\u3059\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u305f\u65b0\u3057\u3044\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n\u3000\u3055\u3042\u4f7f\u3044\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u304b\u3002"}}, "bbs3": {}, "_default": {"1": {"info name": "info", "title2": "

pybbs

", "kinds": "conf", "out_words": ["\u6b7b\u306d", "\u963f\u5446", "\u30a2\u30db", "\u99ac\u9e7f", "\u30d0\u30ab"], "title": "pybbs", "mentenance": false, "count": 30, "password": "admin", "bad_words": ["infomation

", "date": "2017/08/21 21:19", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 1, "password": "", "raw": "infomation"}}, "kagawa": {}, "index": {}, "bbs1": {"57": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 23, "password": "", "raw": "a"}, "42": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 18:34", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 8, "password": "a", "raw": "test"}, "39": {"comment": "

test>>1desu>>2\r\n

>>12

", "date": "2016/12/24 20:02", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u8ab0\u304b\u3055\u3093", "number": 5, "password": "", "raw": "test>>1desu>>2\r\n>>12"}, "47": {"comment": "

a

", "date": "2017/08/20 20:43", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 13, "password": "", "raw": "a"}, "8": {"comment": "

http://kainushi.xyz\r\n

desuyo

\u691c\u51fa\u3055\u308c\u305furl:http://kainushi.xyz", "date": "2016/12/14 19:21", "title": "bbs", "name": "\u8ab0\u304b\u3055\u3093", "number": 2, "password": "KAINUSHI", "raw": "http://kainushi.xyz\r\ndesuyo"}, "9": {"comment": "

http://kainushi.xyz http://pybbs.herokuapp.com\r\n

http://kainushi.xyz

\u691c\u51faURL:
http://kainushi.xyz
http://pybbs.herokuapp.com
", "date": "2016/12/15 18:28", "title": "bbs", "name": "\u8ab0\u304b\u3055\u3093", "number": 3, "password": "KAINUSHI", "raw": "http://kainushi.xyz http://pybbs.herokuapp.com\r\nhttp://kainushi.xyz"}, "48": {"comment": "

a

", "date": "2017/08/20 20:43", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 14, "password": "", "raw": "a"}, "40": {"comment": "

>>1>>2 >>3

", "date": "2016/12/24 20:03", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u8ab0\u304b\u3055\u3093", "number": 6, "password": "", "raw": ">>1>>2 >>3"}, "49": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 15, "password": "", "raw": "a"}, "68": {"comment": "

a

", "date": "2017/08/20 21:36", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 34, "password": "", "raw": "a"}, "59": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 25, "password": "", "raw": "a"}, "41": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 18:33", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 7, "password": "a", "raw": "test"}, "67": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 20:46", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 33, "password": "a", "raw": "a"}, "66": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 20:45", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 32, "password": "a", "raw": "a"}, "54": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 20, "password": "", "raw": "a"}, "44": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 20:42", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 10, "password": "a", "raw": "del"}, "56": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 22, "password": "", "raw": "a"}, "64": {"comment": "

a

", "date": "2017/08/20 20:45", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 30, "password": "", "raw": "a"}, "62": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 28, "password": "", "raw": "a"}, "73": {"comment": "

link>>15.

", "date": "2017/08/21 01:33", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 39, "password": "", "raw": "link>>15."}, "58": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 24, "password": "", "raw": "a"}, "55": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 21, "password": "", "raw": "a"}, "45": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2017/08/20 20:43", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 11, "password": "a", "raw": "a"}, "53": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 19, "password": "", "raw": "a"}, "38": {"comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "date": "2016/12/19 17:45", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "name": "", "number": 4, "password": "b", "raw": ">>1 2 >>3"}, "51": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 17, "password": "", "raw": "a"}, "50": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 16, "password": "", "raw": "a"}, "72": {"comment": "

a

", "date": "2017/08/21 01:26", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 38, "password": "", "raw": "a"}, "43": {"comment": "

\u4e0a\u306e\u8cb4\u5973\u3092\u524a\u9664\u3057\u307e\u3057\u305f

", "date": "2017/08/20 18:34", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 9, "password": "", "raw": "\u4e0a\u306e\u8cb4\u5973\u3092\u524a\u9664\u3057\u307e\u3057\u305f"}, "46": {"comment": "

a

", "date": "2017/08/20 20:43", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 12, "password": "", "raw": "a"}, "69": {"comment": "

test>>8desu

", "date": "2017/08/21 00:53", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 35, "password": "", "raw": "test>>8desu"}, "71": {"comment": "

a

", "date": "2017/08/21 01:26", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 37, "password": "", "raw": "a"}, "63": {"comment": "

a

", "date": "2017/08/20 20:45", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 29, "password": "", "raw": "a"}, "2": {"comment": "

\u63b2\u793a\u677f\u306e\u52d5\u4f5c\u691c\u8a3c\u306b\u4f7f\u3063\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u843d\u66f8\u304d\u7528\u3067\u3059\u3002\u3054\u9023\u7d61\u306f\u5225\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u3069\u3046\u305e\u3002

", "date": "2016/12/01 18:32", "title": "\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066\u3054\u5229\u7528\u304f\u3060\u3055\u3044", "name": "\u7ba1\u7406\u8005", "number": 1, "password": "admin", "raw": "\u63b2\u793a\u677f\u306e\u52d5\u4f5c\u691c\u8a3c\u306b\u4f7f\u3063\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u843d\u66f8\u304d\u7528\u3067\u3059\u3002\u3054\u9023\u7d61\u306f\u5225\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u3069\u3046\u305e\u3002"}, "61": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 27, "password": "", "raw": "a"}, "52": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 18, "password": "", "raw": "a"}, "65": {"comment": "

a

", "date": "2017/08/20 20:45", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 31, "password": "", "raw": "a"}, "60": {"comment": "

a

", "date": "2017/08/20 20:44", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 26, "password": "", "raw": "a"}, "70": {"comment": "

test>>8yori

", "date": "2017/08/21 01:20", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057.", "name": "\u7ba1\u7406\u8005", "number": 36, "password": "", "raw": "test>>8yori"}}, "master": {"1": {"comment": "\u6295\u7a3f\u8005\u540d\u306a\u3069\uff1a\u76f8\u8ac7\u5185\u5bb9\uff1a\u305d\u306e\u4ed6\uff1a", "time": "2017/09/01 22:12"}, "2": {"comment": "\u6295\u7a3f\u8005\u540d\u306a\u3069\uff1a\u76f8\u8ac7\u5185\u5bb9\uff1a\u305d\u306e\u4ed6\uff1a", "time": "2017/09/01 22:12"}, "3": {"comment": "\u6295\u7a3f\u8005\u540d\u306a\u3069\uff1a\u76f8\u8ac7\u5185\u5bb9\uff1a\u305d\u306e\u4ed6\uff1a", "time": "2017/09/01 22:19"}}} \ No newline at end of file +{"bbs2": {}, "bbs1None": {}, "kagawa": {}, "bbs1": {"61": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 27, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "9": {"raw": "http://kainushi.xyz http://pybbs.herokuapp.com\r\nhttp://kainushi.xyz", "name": "\u8ab0\u304b\u3055\u3093", "password": "KAINUSHI", "date": "2016/12/15 18:28", "number": 3, "comment": "

http://kainushi.xyz http://pybbs.herokuapp.com\r\n

http://kainushi.xyz

\u691c\u51faURL:
http://kainushi.xyz
http://pybbs.herokuapp.com
", "title": "bbs"}, "63": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:45", "number": 29, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "45": {"raw": "a", "name": "", "password": "a", "date": "2017/08/20 20:43", "number": 11, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "47": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:43", "number": 13, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "71": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 01:26", "number": 37, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "58": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 24, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "70": {"raw": "test>>8yori", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 01:20", "number": 36, "comment": "

test>>8yori

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "65": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:45", "number": 31, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "53": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 19, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "59": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 25, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "69": {"raw": "test>>8desu", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 00:53", "number": 35, "comment": "

test>>8desu

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "60": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 26, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "66": {"raw": "a", "name": "", "password": "a", "date": "2017/08/20 20:45", "number": 32, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "64": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:45", "number": 30, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "74": {"raw": ">>", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/09/01 23:03", "number": 40, "comment": "

>>

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "46": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:43", "number": 12, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "41": {"raw": "test", "name": "", "password": "a", "date": "2017/08/20 18:33", "number": 7, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "67": {"raw": "a", "name": "", "password": "a", "date": "2017/08/20 20:46", "number": 33, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "50": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 16, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "56": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 22, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "44": {"raw": "del", "name": "", "password": "a", "date": "2017/08/20 20:42", "number": 10, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "49": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 15, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "75": {"raw": ">>1\r\n", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/09/01 23:03", "number": 41, "comment": "

>>1\r\n

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "52": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 18, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "8": {"raw": "http://kainushi.xyz\r\ndesuyo", "name": "\u8ab0\u304b\u3055\u3093", "password": "KAINUSHI", "date": "2016/12/14 19:21", "number": 2, "comment": "

http://kainushi.xyz\r\n

desuyo

\u691c\u51fa\u3055\u308c\u305furl:http://kainushi.xyz", "title": "bbs"}, "57": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 23, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "55": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 21, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "43": {"raw": "\u4e0a\u306e\u8cb4\u5973\u3092\u524a\u9664\u3057\u307e\u3057\u305f", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 18:34", "number": 9, "comment": "

\u4e0a\u306e\u8cb4\u5973\u3092\u524a\u9664\u3057\u307e\u3057\u305f

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "73": {"raw": "link>>15.", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 01:33", "number": 39, "comment": "

link>>15.

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "48": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:43", "number": 14, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "2": {"raw": "\u63b2\u793a\u677f\u306e\u52d5\u4f5c\u691c\u8a3c\u306b\u4f7f\u3063\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u843d\u66f8\u304d\u7528\u3067\u3059\u3002\u3054\u9023\u7d61\u306f\u5225\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u3069\u3046\u305e\u3002", "name": "\u7ba1\u7406\u8005", "password": "admin", "date": "2016/12/01 18:32", "number": 1, "comment": "

\u63b2\u793a\u677f\u306e\u52d5\u4f5c\u691c\u8a3c\u306b\u4f7f\u3063\u3066\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u843d\u66f8\u304d\u7528\u3067\u3059\u3002\u3054\u9023\u7d61\u306f\u5225\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u3069\u3046\u305e\u3002

", "title": "\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u3068\u3057\u3066\u3054\u5229\u7528\u304f\u3060\u3055\u3044"}, "38": {"raw": ">>1 2 >>3", "name": "", "password": "b", "date": "2016/12/19 17:45", "number": 4, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "39": {"raw": "test>>1desu>>2\r\n>>12", "name": "\u8ab0\u304b\u3055\u3093", "password": "", "date": "2016/12/24 20:02", "number": 5, "comment": "

test>>1desu>>2\r\n

>>12

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "72": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 01:26", "number": 38, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "62": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 28, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "68": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 21:36", "number": 34, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "40": {"raw": ">>1>>2 >>3", "name": "\u8ab0\u304b\u3055\u3093", "password": "", "date": "2016/12/24 20:03", "number": 6, "comment": "

>>1>>2 >>3

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "54": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 20, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}, "42": {"raw": "test", "name": "", "password": "a", "date": "2017/08/20 18:34", "number": 8, "comment": "\u6295\u7a3f\u8005\u306b\u3088\u308a\u524a\u9664\u3055\u308c\u307e\u3057\u305f", "title": "\u524a\u9664\u3055\u308c\u307e\u3057\u305f"}, "51": {"raw": "a", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/20 20:44", "number": 17, "comment": "

a

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}}, "bbs": {"1": {"raw": "\u3053\u306e\u63b2\u793a\u677f\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u4f55\u304c\u3059\u3054\u3044\u306e\u304b\u5229\u7528\u8005\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3051\u308c\u3069\u3001\u7ba1\u7406\u8005\u306f\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u7c21\u5358\u306b\u904b\u7528\u3067\u304d\u307e\u3059\u3002heroku\u3067git\u3059\u308c\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30a2\u3057\u3066\u3059\u3050\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u6c17\u306b\u3057\u306a\u3044\u4eba\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002\r\n\u3000tornado\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304b\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u5927\u5909\u7c21\u7d20\u3067\u3059\u3002\u306a\u304a\u304b\u3064\u30d6\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30c3\u30d7\u304c\u30b0\u30ec\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n\u3000\u63b2\u793a\u677f\u306e\u7ba1\u7406\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u3067\u3059\u304c\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u8ffd\u52a0\u306f\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u8ffd\u52a0\u3057\u305f\u3044URL\u3092\u6253\u3061\u8fbc\u3080\u3060\u3051\u3002\u305d\u3046\u3059\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u305f\u65b0\u3057\u3044\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n\u3000\u3055\u3042\u4f7f\u3044\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u304b\u3002", "name": "\u7ba1\u7406\u8005", "password": "admin", "date": "2016/11/22 19:43", "number": 1, "comment": "

\u3053\u306e\u63b2\u793a\u677f\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u4f55\u304c\u3059\u3054\u3044\u306e\u304b\u5229\u7528\u8005\u306b\u306f\u308f\u304b\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3051\u308c\u3069\u3001\u7ba1\u7406\u8005\u306f\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3067\u3059\u3002\u7c21\u5358\u306b\u904b\u7528\u3067\u304d\u307e\u3059\u3002heroku\u3067git\u3059\u308c\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30a2\u3057\u3066\u3059\u3050\u4f7f\u3048\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u6c17\u306b\u3057\u306a\u3044\u4eba\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3059\u3002\r\n

\u3000tornado\u3092\u4f7f\u7528\u3057\u3066\u66f8\u304b\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u5927\u5909\u7c21\u7d20\u3067\u3059\u3002\u306a\u304a\u304b\u3064\u30d6\u30ed\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u30a2\u30c3\u30d7\u304c\u30b0\u30ec\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\r\n

\u3000\u63b2\u793a\u677f\u306e\u7ba1\u7406\u306b\u5fc5\u8981\u306a\u62e1\u5f35\u3067\u3059\u304c\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u8ffd\u52a0\u306f\u7ba1\u7406\u8005\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u8ffd\u52a0\u3057\u305f\u3044URL\u3092\u6253\u3061\u8fbc\u3080\u3060\u3051\u3002\u305d\u3046\u3059\u308c\u3070\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u305f\u65b0\u3057\u3044\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n

\u3000\u3055\u3042\u4f7f\u3044\u305f\u304f\u306a\u308a\u307e\u3057\u305f\u304b\u3002

", "title": "\u3053\u306eBBS\u306f\u3059\u3054\u3044\u3067\u3059\u3002\u3002\u3002\uff20\uff20\uff1b"}}, "index": {}, "_default": {"1": {"title2": "

pybbs

", "mentenance": false, "kinds": "conf", "bad_words": ["bbs1,14"}, "2": {"time": "2017/09/01", "comment": "a

bbs1,18"}, "3": {"time": "2017/09/01", "comment": "http://kainushi.xyz http://pybbs.herokuapp.com\r\nhttp://kainushi.xyz

bbs1,3"}}, "bbs3": {}, "info": {"1": {"raw": "infomation", "name": "\u7ba1\u7406\u8005", "password": "", "date": "2017/08/21 21:19", "number": 1, "comment": "

infomation

", "title": "\u30bf\u30a4\u30c8\u30eb\u306a\u3057."}}} \ No newline at end of file diff --git a/templates/master.htm b/templates/master.htm index 6c048e7..ada43b9 100644 --- a/templates/master.htm +++ b/templates/master.htm @@ -5,7 +5,7 @@

報告一覧 {% for rec in com %} -

{{rec['comment']}} +

{% raw rec['comment'] %}

{{rec['time']}}


{% end %} diff --git a/templates/modules/index.htm b/templates/modules/index.htm index 36c9d9f..73954c0 100755 --- a/templates/modules/index.htm +++ b/templates/modules/index.htm @@ -63,6 +63,7 @@
 Date:

{{record['date']}}

▽▲▽▲▽▲▽

{% raw record['comment'] %}
+
報告

△▼△▼△▼△ {% end %}