Handles the situation where no posts exist #77
No reviewers
Labels
No Label
bug
compatibility
documentation
duplicate
enhancement
future release
help wanted
invalid
non-code
question
refactor
testing
this release
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#77
Loading…
Reference in New Issue
No description provided.
Delete Branch "handle-empty-database"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #76
Tested on my system as well as rawtext.club, using unit tests as well as by adding a new post.
This looks like a sensible solution to me. Good job on the test coverage.
@ -159,3 +159,3 @@
new_post_id = -1
if record.category:
new_post_id = max([record[0] for record in self.link_data if record[0]]) + 1
if self.link_data:
Solid.