Welcome, Guest
General discussion about ComicRack

TOPIC: Smartlist with weird year criteria

Smartlist with weird year criteria 2 months 1 week ago #48068

  • pweasel
  • pweasel's Avatar
  • Offline
  • Expert Boarder
  • Posts: 117
  • 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 2 months 1 week ago #48072

  • jkthemac
  • jkthemac's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 760
  • Thank you received: 248
  • Karma: 55
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: 2 months 1 week ago by jkthemac.
The administrator has disabled public write access.
The following user(s) said Thank You: pweasel

Smartlist with weird year criteria 2 months 1 week ago #48073

  • pweasel
  • pweasel's Avatar
  • Offline
  • Expert Boarder
  • Posts: 117
  • 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.

Smartlist with weird year criteria 1 month 1 day ago #48220

  • adil
  • adil's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Thanks for sharing. I hope it will be helpful for too many people that are searching for this topic. foam Plate suppliers dubai
The administrator has disabled public write access.
Time to create page: 0.168 seconds

Who's Online

We have 201 guests and 6 members online