Skip to content

Commit

Permalink
修改提示语言
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed May 6, 2019
1 parent 6f673d7 commit 6ee8499
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions control_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,7 @@ def git_publish():
status = build_static_page.publish()
result = {"status": status}
return jsonify(result)

@app.route('/control/', strict_slashes=False, methods=['OPTIONS'])
def get_204():
abort(204)
2 changes: 1 addition & 1 deletion init.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_rss_file():
def load_config():
console.log("Info", "Loading configuration...")
if not os.path.exists("./config/system.json"):
console.log("Error", "system.json file not found.")
console.log("Error", "[system.json] file not found.")
exit(1)
asyncio.set_event_loop(asyncio.new_event_loop())
loop = asyncio.get_event_loop()
Expand Down
2 changes: 2 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
from manage import build_rss, post_manage, get
if args.command == "new":
config = None
name=""
title=""
if args.config is not None:
config = json.loads(file.read_file(args.config))
if config is None:
Expand Down

0 comments on commit 6ee8499

Please sign in to comment.