mirror of
https://github.com/star-inc/star_yuuki_bot.git
synced 2024-11-10 09:12:44 +08:00
Reformat
This commit is contained in:
parent
eaa371e5be
commit
d6f0d6901a
6 changed files with 11 additions and 8 deletions
|
@ -8,9 +8,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
"""
|
||||
from thrift.protocol import TCompactProtocol
|
||||
from thrift.transport import THttpClient
|
||||
from yuuki_core.TalkService import Client, TalkException
|
||||
|
||||
from .config import YuukiConfig
|
||||
from yuuki_core.TalkService import Client, TalkException
|
||||
|
||||
# NC HighSpeed Library
|
||||
try:
|
||||
|
|
|
@ -9,10 +9,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
import socket
|
||||
import time
|
||||
|
||||
from .yuuki import Yuuki
|
||||
from yuuki_core.ttypes import Operation
|
||||
|
||||
from .tools import YuukiStaticTools, YuukiDynamicTools
|
||||
from .yuuki import Yuuki
|
||||
|
||||
|
||||
class YuukiPoll:
|
||||
|
|
|
@ -14,9 +14,10 @@ import sys
|
|||
import traceback
|
||||
|
||||
import requests
|
||||
from .yuuki import Yuuki
|
||||
from yuuki_core.ttypes import OpType, MIDType, ContentType, Group, Message
|
||||
|
||||
from .yuuki import Yuuki
|
||||
|
||||
|
||||
class YuukiStaticTools:
|
||||
@staticmethod
|
||||
|
|
|
@ -7,8 +7,10 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
|
|||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
"""
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from ..data import YuukiData
|
||||
|
||||
|
||||
class YuukiWebDataReader:
|
||||
def __init__(self, yuuki_data: YuukiData):
|
||||
self.handle = yuuki_data
|
||||
|
|
|
@ -17,10 +17,10 @@ from flask import Flask, render_template, request, redirect, jsonify
|
|||
from flask_bootstrap import Bootstrap
|
||||
from gevent.pywsgi import WSGIServer
|
||||
|
||||
from ..yuuki import Yuuki
|
||||
from ..data import YuukiData
|
||||
from .reader import YuukiWebDataReader
|
||||
from ..data import YuukiData
|
||||
from ..tools import YuukiDynamicTools
|
||||
from ..yuuki import Yuuki
|
||||
|
||||
wa_app = Flask(__name__)
|
||||
|
||||
|
|
|
@ -28,9 +28,9 @@
|
|||
{{ render_nav_item('index') }}
|
||||
</ul>
|
||||
{% if authorized %}
|
||||
<a class="navbar-brand" href="/logout">
|
||||
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Logout</button>
|
||||
</a>
|
||||
<a class="navbar-brand" href="/logout">
|
||||
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Logout</button>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue