Skip to content

Commit f8da969

Browse files
authored
fix: check for table not null or empty for is_database_backup (#75)
1 parent 4a77050 commit f8da969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

housewatch/models/backup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def month_of_year(self):
4747
return self.schedule.split(" ")[3]
4848

4949
def is_database_backup(self):
50-
return self.table is None
50+
return not self.table
5151

5252
def is_table_backup(self):
5353
return self.table is not None

0 commit comments

Comments
 (0)