Skip to content

Commit

Permalink
fix: check for table not null or empty for is_database_backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daesgar committed Jul 15, 2024
1 parent 4a77050 commit d502da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion housewatch/models/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def month_of_year(self):
return self.schedule.split(" ")[3]

def is_database_backup(self):
return self.table is None
return not self.table

def is_table_backup(self):
return self.table is not None
Expand Down

0 comments on commit d502da0

Please sign in to comment.