Private
Public Access
1
0

updated API instructions

This commit is contained in:
Sander Roosendaal
2021-02-13 14:47:36 +01:00
parent e5ea0856b7
commit c93c3a51e5
2 changed files with 9 additions and 2 deletions

View File

@@ -2370,7 +2370,10 @@ class PlannedSession(models.Model):
steps = steps_read_fit(settings.MEDIA_ROOT+'/'+self.fitfile.name)
self.steps_json = json.dumps(steps)
super(PlannedSession,self).save(*args, **kwargs)
try:
super(PlannedSession,self).save(*args, **kwargs)
except:
pass