Welcome, Guest
General discussion about ComicRack

TOPIC: Smartlist with weird year criteria

Smartlist with weird year criteria 1 week 4 days ago #48068

  • pweasel
  • pweasel's Avatar
  • Offline
  • Expert Boarder
  • Posts: 116
  • Thank you received: 18
  • Karma: 8
Hi huys,
Anyone knows how to make a smartlist that only shows comics that have only the year in the "published" field?

CRW 0.9.178 x64 on Win10
CRA 1.80 on Nexus 10
The administrator has disabled public write access.

Smartlist with weird year criteria 1 week 17 hours ago #48072

  • jkthemac
  • jkthemac's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 748
  • Thank you received: 244
  • Karma: 54
You may need to clarify that question because it doesn't seem like something difficult, so I can only assume you mean something other than I think you mean.

Published is populated by the year field. So you never need to use that field in a smart list.

The more specific answer is that the field is an integer based off of the current date, such that a field with just a year is the number of days ago the first of January of that year was. That means any smart list that actually uses Published as a field would need to be relative, or use the current date arithmetically.

I am writing this on 14 August so the relative date for comics:

09/2017 = -18
3/2017= 166
2017 = 225
1/2017 =225

Much easier to just use the Year field in a smart list.

By contrast Released Date is in the format: 01/01/2000 00:00:00
So you would need to slice the sting to focus on a year.

Name "Released in Year"
Match All
{
    [Expression] is true "int(str({ReleasedTime})[6:10]) == int(2010)",
    Not [Released] equals ""
}

--

It occurs to me after all of that, you may mean does not have a month filled out. In which case you would need:

Name "No Month"
Match [Month] equals ""
Last Edit: 1 week 15 hours ago by jkthemac.
The administrator has disabled public write access.
The following user(s) said Thank You: pweasel

Smartlist with weird year criteria 1 week 14 hours ago #48073

  • pweasel
  • pweasel's Avatar
  • Offline
  • Expert Boarder
  • Posts: 116
  • Thank you received: 18
  • Karma: 8
jkthemac wrote:
It occurs to me after all of that, you may mean does not have a month filled out. In which case you would need:

Name "No Month"
Match [Month] equals ""

This exactly. Thanks
CRW 0.9.178 x64 on Win10
CRA 1.80 on Nexus 10
The administrator has disabled public write access.
Time to create page: 0.301 seconds

Who's Online

We have 247 guests and 3 members online