fixing intervals.icu import
This commit is contained in:
@@ -497,7 +497,10 @@ class IntervalsIntegration(SyncIntegration):
|
||||
# got data
|
||||
if data:
|
||||
ps.name = data['name']
|
||||
ps.comment = data['description']
|
||||
try:
|
||||
ps.comment = data['description']
|
||||
except KeyError:
|
||||
ps.comment = ''
|
||||
ps.startdate = arrow.get(data['start_date_local']).datetime
|
||||
ps.enddate = arrow.get(data['end_date_local']).datetime
|
||||
ps.preferreddate = arrow.get(data['start_date_local']).datetime
|
||||
|
||||
Reference in New Issue
Block a user