mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-07-19 01:13:31 -05:00
Added Inventory, xp and more Values to DB. Fixed eula for dev versions.
This commit is contained in:
parent
f59aa0b327
commit
a02f5e1fbf
|
|
@ -224,6 +224,8 @@ def consent_eula():
|
|||
except Exception as e:
|
||||
logger.graylog_logger(level="error", handler="general-consent-eula", message=f"Error in consent_eula: {e}")
|
||||
elif request.method == "GET":
|
||||
if request.cookies.get('bhvrSession') is None:
|
||||
return jsonify({"isGiven": True})
|
||||
userid = request.cookies.get('bhvrSession')
|
||||
is_given = mongo.eula(userId=userid, get_eula=True, server=mongo_host, db=mongo_db, collection=mongo_collection)
|
||||
if is_given:
|
||||
|
|
|
|||
|
|
@ -33,7 +33,12 @@ class Mongo:
|
|||
'steamid': steamid,
|
||||
'userId': userId,
|
||||
'token': token,
|
||||
'eula': False
|
||||
'eula': False,
|
||||
'xp': 0,
|
||||
'currency_blood_cells': 0,
|
||||
'currency_iron': 0,
|
||||
'currency_ink_cells': 0,
|
||||
'unlocked_items': []
|
||||
}
|
||||
|
||||
self.dyn_collection.insert_one(new_document)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user