mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
Merge branch 'public-server' of https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server into public-server
This commit is contained in:
commit
c3905aa77e
1 changed files with 2 additions and 2 deletions
4
dist/ba_root/mods/playersData/pdata.py
vendored
4
dist/ba_root/mods/playersData/pdata.py
vendored
|
|
@ -18,7 +18,7 @@ from tools.file_handle import OpenJson
|
||||||
import _ba
|
import _ba
|
||||||
import ba.internal
|
import ba.internal
|
||||||
import json
|
import json
|
||||||
import datetime
|
|
||||||
from tools.ServerUpdate import checkSpammer
|
from tools.ServerUpdate import checkSpammer
|
||||||
import setting
|
import setting
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
@ -73,7 +73,7 @@ def get_profiles() -> dict:
|
||||||
if CacheData.profiles == {}:
|
if CacheData.profiles == {}:
|
||||||
try:
|
try:
|
||||||
if os.stat(PLAYERS_DATA_PATH+"profiles.json").st_size > 1000000:
|
if os.stat(PLAYERS_DATA_PATH+"profiles.json").st_size > 1000000:
|
||||||
newpath = f'{PLAYERS_DATA_PATH}profiles-{str(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))}.json'
|
newpath = f'{PLAYERS_DATA_PATH}profiles-{str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))}.json'
|
||||||
shutil.copyfile(PLAYERS_DATA_PATH + "profiles.json", newpath)
|
shutil.copyfile(PLAYERS_DATA_PATH + "profiles.json", newpath)
|
||||||
profiles = {"pb-sdf": {}}
|
profiles = {"pb-sdf": {}}
|
||||||
print("resetting profiles")
|
print("resetting profiles")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue