Maybe actually save the game metadata
This commit is contained in:
parent
7a60b8a631
commit
2323d64547
@ -36,11 +36,13 @@ def post_arrival():
|
||||
if not ('checkpoint' in data and 'name' in data):
|
||||
return "Error: Key missing. See docs/API.md for reference.", 400
|
||||
|
||||
game = slugify(data['game'])
|
||||
name = slugify(data['name'])
|
||||
checkpoint = slugify(data['checkpoint'])
|
||||
|
||||
now = datetime.utcnow().isoformat() + 'Z'
|
||||
db.insert({
|
||||
'game': game,
|
||||
'name': name,
|
||||
'checkpoint': checkpoint,
|
||||
'arrival': now,
|
||||
|
Loading…
x
Reference in New Issue
Block a user