Default values for notes/hourly states
This commit is contained in:
parent
40f27a68fa
commit
abd26183e3
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ class User(BaseModel):
|
|||
class State(BaseModel):
|
||||
"""A model for storing replication state."""
|
||||
state = IntegerField() # Replication state
|
||||
notes = IntegerField() # File size of notes dump
|
||||
hourly = IntegerField() # Unix Timestamp of last object check
|
||||
notes = IntegerField(default=0) # File size of notes dump
|
||||
hourly = IntegerField(default=0) # Unix Timestamp of last object check
|
||||
|
||||
def run_hourly(self):
|
||||
"""Returns True if it's time to run hourly tasks."""
|
||||
|
|
Loading…
Add table
Reference in a new issue