mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
fixed datetime in pdata
This commit is contained in:
parent
70dfbe091e
commit
9466114f91
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.internal
|
||||
import json
|
||||
import datetime
|
||||
|
||||
from tools.ServerUpdate import checkSpammer
|
||||
import setting
|
||||
from datetime import datetime, timedelta
|
||||
|
|
@ -73,7 +73,7 @@ def get_profiles() -> dict:
|
|||
if CacheData.profiles == {}:
|
||||
try:
|
||||
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)
|
||||
profiles = {"pb-sdf": {}}
|
||||
print("resetting profiles")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue