Skip to content

Commit

Permalink
Fix for jbake-org#213 - tag_posts: Contains draft posts as well as pu…
Browse files Browse the repository at this point in the history
…blished posts
  • Loading branch information
uli-heller committed Jun 7, 2015
1 parent 8235a9b commit 0f89be7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'maven'

group = 'org.jbake'
version = '2.5.0-SNAPSHOT'
version = '2.4.0-uli1'

description = """jbake"""

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -10,7 +10,7 @@

<groupId>org.jbake</groupId>
<artifactId>jbake-core</artifactId>
<version>2.4.0</version>
<version>2.4.0-uli1</version>
<packaging>jar</packaging>

<name>jbake</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jbake/app/ContentStore.java
Expand Up @@ -94,7 +94,7 @@ public List<ODocument> getPublishedPosts() {
}

public List<ODocument> getPublishedPostsByTag(String tag) {
return query("select * from post where status='published' where ? in tags order by date desc", tag);
return query("select * from post where status='published' and ? in tags order by date desc", tag);
}

public List<ODocument> getPublishedPages() {
Expand Down

0 comments on commit 0f89be7

Please sign in to comment.