Update contrib/stack/topsStack/fetchOrbit.py

Co-authored-by: Ryan Burns <rtburns@jpl.nasa.gov>
LT1AB
Bryan Marfito 2021-03-24 14:13:54 +08:00 committed by GitHub
parent ced1938472
commit 32b4ac58be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -153,9 +153,7 @@ if __name__ == '__main__':
else: else:
raise ValueError("Unexpected orbit type: '" + oType + "'") raise ValueError("Unexpected orbit type: '" + oType + "'")
end_date2 = end_date + datetime.timedelta(days=1) end_date2 = end_date + datetime.timedelta(days=1)
url = server + spec[1] + str(end_date.year).zfill(2) + '/' + str(end_date.month).zfill(2) + \ url = (server + spec[1] + end_date.strftime("%Y/%m/%d/") for end_date in (end_date, end_date2))
'/' + str(end_date.day).zfill(2) + '/', server + spec[1] + str(end_date2.year).zfill(2) + '/' + str(end_date2.month).zfill(2) + \
'/' + str(end_date2.day).zfill(2) + '/'
success = False success = False
match = None match = None