Changes order to newest first and adds new markers for categories and posts #44
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#44
Loading…
Reference in New Issue
No description provided.
Delete Branch "new-posts"
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?
This should, if all goes well, close out #31
This PR does the following:
Main
New
to the categories view.link_data
list and gets a count. Really, we just need to find one that is new before we get to posts that are older than theconfig.USER.lastlogin
value. Doing a regular for loop and breaking at either of these conditions would be solid. That said, pythons list comprehensions are quick-ish and are fine for POC. I can update with the faster version if this ends up being desired.*
next to the link title/description indicating that it is new.Sidequest
link_data
. It was already being sorted. Adding the flagreverse=True
lets us get things newest first (it was my understanding that this was the desired view. If not, let me know and I can take this out).Looks good and works well. Showing newest items first is a good touch.
We should merge this in before my PR and I'll update from there.
There is a merge conflict with this one so I’ll need to take some time to figure out how to overcome it.
I'm looking at it now, should have it corrected soon.
I've made the appropriate changes now so this is ready to be merged.
One thing to note is that the "new" marker for category contents is now displayed on the next line. This is a problem with
data.py
and not anything in this PR.This looks really good now!