mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
9fe80ab4a6
@ -145,7 +145,7 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
|
|||||||
{
|
{
|
||||||
'isbn': '{identifiers:select(isbn)}',
|
'isbn': '{identifiers:select(isbn)}',
|
||||||
'formats': '{formats}',
|
'formats': '{formats}',
|
||||||
'last_modified':'''{last_modified:'format_date($, "%d %m, %Y")'}'''
|
'last_modified':'''{last_modified:'format_date($, "dd MMM yy")'}'''
|
||||||
}[which])
|
}[which])
|
||||||
self.composite_sort_by.setCurrentIndex(2 if which == 'last_modified' else 0)
|
self.composite_sort_by.setCurrentIndex(2 if which == 'last_modified' else 0)
|
||||||
|
|
||||||
|
@ -469,7 +469,6 @@ class BuiltinFormat_date(BuiltinFormatterFunction):
|
|||||||
'yyyy : the year as four digit number.')
|
'yyyy : the year as four digit number.')
|
||||||
|
|
||||||
def evaluate(self, formatter, kwargs, mi, locals, val, format_string):
|
def evaluate(self, formatter, kwargs, mi, locals, val, format_string):
|
||||||
print val
|
|
||||||
if not val:
|
if not val:
|
||||||
return ''
|
return ''
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user