hotfix loging logic
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
ffa61f2ed1
commit
f1cb8e6cfe
@ -95,14 +95,14 @@ def view_slack_doorboy():
|
|||||||
if door == "outsidedoors":
|
if door == "outsidedoors":
|
||||||
doors = ["backdoor", "frontdoor", "grounddoor"]
|
doors = ["backdoor", "frontdoor", "grounddoor"]
|
||||||
|
|
||||||
for door in doors:
|
for d in doors:
|
||||||
db.eventlog.insert_one({
|
db.eventlog.insert_one({
|
||||||
"method": "slack",
|
"method": "slack",
|
||||||
"approved": approved,
|
"approved": approved,
|
||||||
"duration": 5,
|
"duration": 5,
|
||||||
"component": "doorboy",
|
"component": "doorboy",
|
||||||
"type": "open-door",
|
"type": "open-door",
|
||||||
"door": door,
|
"door": d,
|
||||||
"member_id": member.username,
|
"member_id": member.username,
|
||||||
"member": member.display_name,
|
"member": member.display_name,
|
||||||
"timestamp": datetime.utcnow(),
|
"timestamp": datetime.utcnow(),
|
||||||
|
Loading…
Reference in New Issue
Block a user