瀏覽代碼

Fix traceback on adding person, person active by default

Maarten van den Berg 6 年之前
父節點
當前提交
28c53603bf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      piket_client/model.py

+ 1 - 1
piket_client/model.py

@@ -51,7 +51,7 @@ class Person(NamedTuple):
51 51
     """ Represents a Person, as retrieved from the database. """
52 52
 
53 53
     name: str
54
-    active: bool
54
+    active: bool = True
55 55
     person_id: int = None
56 56
     consumptions: dict = {}
57 57