fix lack of skip in disqus export

This commit is contained in:
Umputun
2018-02-19 13:04:11 -06:00
parent 6a3d6c0173
commit a423d86d0b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ func TestDisqus_Import(t *testing.T) {
assert.Equal(t, "disqus_google-74b9e7568ef6860e93862c5d77590123", c.User.ID)
assert.Equal(t, "89.89.89.139", c.User.IP)
posts, err := dataStore.List("test", 0)
posts, err := dataStore.List("test", 0, 0)
assert.Nil(t, err)
assert.Equal(t, 2, len(posts), "2 posts")
+1 -1
View File
@@ -22,7 +22,7 @@ type Accessor interface {
Last(siteID string, max int) ([]Comment, error) // last comments for given site, sorted by time
User(siteID string, userID string) ([]Comment, int, error) // comments by user, sorted by time
Count(locator Locator) (int, error) // number of comments for the post
List(siteID string, limit int, skip int) ([]PostInfo, error) // list of commented posts
List(siteID string, limit int, skip int) ([]PostInfo, error) // list of commented posts
}
// Admin defines all store ops avail for admin only