squashed commit of many breaking changes

Dropping Support for Python 3.7; adding support for Python 3.9
This commit is contained in:
Fabian Dill
2020-10-19 08:26:31 +02:00
parent add0762114
commit 4f8c737eec
16 changed files with 149 additions and 150 deletions

View File

@@ -123,7 +123,7 @@ def upload_to_db(folder, owner, sid):
multidata = None
for file in os.listdir(folder):
file = os.path.join(folder, file)
if file.endswith(".bmbp"):
if file.endswith(".apbp"):
player = int(file.split("P")[1].split(".")[0].split("_")[0])
patches.add(Patch(data=open(file, "rb").read(), player=player))
elif file.endswith(".txt"):