Skip to content

Commit 8f3302a

Browse files
committed
formatted code
1 parent 24b2ab2 commit 8f3302a

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

connection.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import functions
55
import time
66

7+
78
class Conn():
89
def __init__(self):
910
self.hostname = functions.hostname
@@ -13,8 +14,9 @@ def __init__(self):
1314
self.username = functions.username
1415

1516
def connect(self):
16-
self.connection = pymysql.connect(host=self.hostname, database=self.database, user=self.username, password=self.password,
17-
port=self.port)
17+
self.connection = pymysql.connect(host=self.hostname, database=self.database, user=self.username,
18+
password=self.password,
19+
port=self.port)
1820
self.cursor = self.connection.cursor()
1921

2022
def close(self):
@@ -50,7 +52,6 @@ def login(self, name: str, password: str):
5052

5153
return rows[0]
5254

53-
5455
def register(self, name, password, balance, player_stocks):
5556
self.connect()
5657
query = f"SELECT * FROM users WHERE name = '{name}'"
@@ -142,7 +143,7 @@ def transactions(self):
142143
rows = self.cursor.fetchall()
143144

144145
if len(rows) == 0:
145-
return[" Пока ничего нет"]
146+
return [" Пока ничего нет"]
146147

147148
l = []
148149
for row in rows:
@@ -178,4 +179,4 @@ def register_key(self, gamekey):
178179
self.cursor.execute(query)
179180
self.close()
180181

181-
# c = Conn()
182+
# c = Conn()

functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from colorama import Fore, Back, Style
88
from passwords import *
99

10+
1011
def LOGO():
1112
print('---')
1213
print(f"{Fore.LIGHTBLUE_EX} ________ ")
@@ -23,6 +24,7 @@ def story():
2324
ans = input()
2425
return
2526

27+
2628
def QUESTION():
2729
while True:
2830
print("Да или нет?")
@@ -140,4 +142,4 @@ def SHOP_SOUND():
140142

141143
items = {
142144
1: {"name": "проходка на MuhamBET", "price": 100000}
143-
}
145+
}

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,4 @@ def main():
269269
print("Вы получили ошибку", e)
270270
time.sleep(0.5)
271271
print("Пожалуйста, скопируйте это сообщение и отошлите @noootle в тг")
272-
a = input()
272+
a = input()

0 commit comments

Comments
 (0)