forked from indymedia/epicyon
Only check time on the day
parent
b994d534a2
commit
4cf2d88d99
13
schedule.py
13
schedule.py
|
@ -58,12 +58,13 @@ def updatePostSchedule(baseDir: str,handle: str,httpd,maxScheduledPosts: int) ->
|
||||||
if daysSinceEpoch < postDaysSinceEpoch:
|
if daysSinceEpoch < postDaysSinceEpoch:
|
||||||
print('DEBUG: schedule not yet date')
|
print('DEBUG: schedule not yet date')
|
||||||
continue
|
continue
|
||||||
if currTime.time().hour < postTime.time().hour:
|
if daysSinceEpoch == postDaysSinceEpoch:
|
||||||
print('DEBUG: schedule not yet hour')
|
if currTime.time().hour < postTime.time().hour:
|
||||||
continue
|
print('DEBUG: schedule not yet hour')
|
||||||
if currTime.time().minute < postTime.time().minute:
|
continue
|
||||||
print('DEBUG: schedule not yet minute')
|
if currTime.time().minute < postTime.time().minute:
|
||||||
continue
|
print('DEBUG: schedule not yet minute')
|
||||||
|
continue
|
||||||
if not os.path.isfile(postFilename):
|
if not os.path.isfile(postFilename):
|
||||||
print('WARN: schedule postFilename='+postFilename)
|
print('WARN: schedule postFilename='+postFilename)
|
||||||
indexLines.remove(line)
|
indexLines.remove(line)
|
||||||
|
|
Loading…
Reference in New Issue