Skip to content

Commit 8ecb5f5

Browse files
committed
'builder': get packages updated for last 6 days
1 parent 6b13831 commit 8ecb5f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

amiberry_xml_builder.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ def tmpcleanup(inputdir, filext):
128128
whdbtime = datetime.datetime.fromtimestamp(os.path.getmtime(whdbfile)).date()
129129
curdate = datetime.date.today()
130130

131+
# Get all packages updated since the following nb of days
132+
nbdays = 6
133+
131134
# get the nb of days since last update of whdbfile
132-
getdelta = (curdate - whdbtime).days
135+
getdelta = (curdate - whdbtime).days + nbdays
133136

134137
# UTC time minus 'getdelta' in seconds
135138
# any files created/modified since then will have to be processed

0 commit comments

Comments
 (0)