Private
Public Access
1
0

fixing intervals.icu import

This commit is contained in:
2024-12-27 15:32:28 +01:00
parent fc67f5d207
commit bb485896b5
4 changed files with 22 additions and 11 deletions

View File

@@ -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