mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #763443 (Fetch News - set the default back to 6 am)
This commit is contained in:
parent
ba5285ea5b
commit
03cb146ad0
@ -68,7 +68,7 @@ class DaysOfWeek(Base):
|
|||||||
def initialize(self, typ=None, val=None):
|
def initialize(self, typ=None, val=None):
|
||||||
if typ is None:
|
if typ is None:
|
||||||
typ = 'day/time'
|
typ = 'day/time'
|
||||||
val = (-1, 9, 0)
|
val = (-1, 6, 0)
|
||||||
if typ == 'day/time':
|
if typ == 'day/time':
|
||||||
val = convert_day_time_schedule(val)
|
val = convert_day_time_schedule(val)
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ class DaysOfMonth(Base):
|
|||||||
|
|
||||||
def initialize(self, typ=None, val=None):
|
def initialize(self, typ=None, val=None):
|
||||||
if val is None:
|
if val is None:
|
||||||
val = ((1,), 9, 0)
|
val = ((1,), 6, 0)
|
||||||
days_of_month, hour, minute = val
|
days_of_month, hour, minute = val
|
||||||
self.days.setText(', '.join(map(str, map(int, days_of_month))))
|
self.days.setText(', '.join(map(str, map(int, days_of_month))))
|
||||||
self.time.setTime(QTime(hour, minute))
|
self.time.setTime(QTime(hour, minute))
|
||||||
@ -380,7 +380,7 @@ class SchedulerDialog(QDialog, Ui_Dialog):
|
|||||||
if d < timedelta(days=366):
|
if d < timedelta(days=366):
|
||||||
ld_text = tm
|
ld_text = tm
|
||||||
else:
|
else:
|
||||||
typ, sch = 'day/time', (-1, 9, 0)
|
typ, sch = 'day/time', (-1, 6, 0)
|
||||||
sch_widget = {'day/time': 0, 'days_of_week': 0, 'days_of_month':1,
|
sch_widget = {'day/time': 0, 'days_of_week': 0, 'days_of_month':1,
|
||||||
'interval':2}[typ]
|
'interval':2}[typ]
|
||||||
rb = getattr(self, list(self.SCHEDULE_TYPES)[sch_widget])
|
rb = getattr(self, list(self.SCHEDULE_TYPES)[sch_widget])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user