change file mode to append

This commit is contained in:
Koushik R Kirugulige 2020-10-13 09:49:10 +05:30 committed by GitHub
parent b731683989
commit db3ec14f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import datetime
import logging
#yesterday gets yesterday's date in MMDDYYYY format and compare if that is a laliga matchday max date and proceed to get the prediction from 538 website
logging.basicConfig(filename="laliga.log",format='%(asctime)s %(message)s',filemode='w')
logging.basicConfig(filename="laliga.log",format='%(asctime)s %(message)s',filemode='a')
yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%m/%d/%Y")