Skip to content

Commit

Permalink
chenge
Browse files Browse the repository at this point in the history
  • Loading branch information
Thannarot committed Jul 29, 2019
1 parent 2fac886 commit e755848
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions landcover_viewer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LandCoverViewer():

PROBABILITY_MAP = ee.ImageCollection('users/servirmekong/LandCover')

YEARLY_COMPOSITES = ee.ImageCollection("projects/servir-mekong/yearlyComposites")
YEARLY_COMPOSITES = ee.ImageCollection('projects/servir-mekong/yearlyComposites')

# geometries
MEKONG_FEATURE_COLLECTION = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw')
Expand Down Expand Up @@ -695,14 +695,14 @@ def download_to_drive(self,
'from_address': settings.EMAIL_HOST_USER,
'to_address': [user_email]
}

# send notification to user
send_email(email_data, html=True)

# create email object
email_data['to_address'] = user_email
email = Email.objects.create(**email_data)

# update export drive
ExportDrive.objects.filter(pk=export_id).update(
email = email,
Expand Down

0 comments on commit e755848

Please sign in to comment.