Skip to content

Commit b66629f

Browse files
committed
refactor: formatの適用
1 parent 1b1a5c0 commit b66629f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/official_interface.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@
66
import os
77
# from image_processing import ImageProcessing
88
from PIL import Image
9+
10+
911
class ResponseError(Exception):
1012
"""レスポンスエラー用の例外."""
13+
1114
def __init__(self, message: str):
1215
"""コンストラクタ.
1316
Args:
1417
message (string): エラーメッセージ
1518
"""
1619
super().__init__(message)
20+
21+
1722
class OfficialInterface:
1823
"""競技システムとの通信を行うクラス."""
1924
SERVER_IP = "192.168.11.44" # 競技システムのIPアドレス
2025
TEAM_ID = 117 # チームID
26+
2127
@classmethod
2228
def upload_snap(cls, img_path: str) -> bool:
2329
"""フィグ画像をアップロードする.
@@ -57,8 +63,10 @@ def upload_snap(cls, img_path: str) -> bool:
5763
print(e)
5864
success = False
5965
return success
66+
67+
6068
if __name__ == "__main__":
6169
print("test-start")
6270
print("Current working directory:", os.getcwd())
6371
OfficialInterface.upload_snap("tests/testdata/img/Fig/Fig1-1.JPEG")
64-
print("test-end")
72+
print("test-end")

0 commit comments

Comments
 (0)