this repo has no description

add debug

Changed files
+2
peruse
+2
peruse/handle_wikidata_feed.go
···
ctx := e.Request().Context()
cursor, err := getTimeBasedCursor(req)
if err != nil {
f.logger.Error("error getting cursor", "error", err)
return helpers.InputError(e, "FeedError", "Invalid cursor for feed")
···
}
for i, p := range posts {
if p.CreatedAt.Before(cursor) {
posts = posts[i:]
break
···
ctx := e.Request().Context()
cursor, err := getTimeBasedCursor(req)
+
fmt.Println("cursor:", cursor.Format(time.RFC3339Nano))
if err != nil {
f.logger.Error("error getting cursor", "error", err)
return helpers.InputError(e, "FeedError", "Invalid cursor for feed")
···
}
for i, p := range posts {
+
fmt.Println(p.CreatedAt.Format(time.RFC3339Nano))
if p.CreatedAt.Before(cursor) {
posts = posts[i:]
break