fixing safari
This commit is contained in:
@@ -344,6 +344,8 @@ class IntervalsIntegration(SyncIntegration):
|
|||||||
for w in ws:
|
for w in ws:
|
||||||
try:
|
try:
|
||||||
w.name = data['name']
|
w.name = data['name']
|
||||||
|
if length(w.name) >= 350:
|
||||||
|
w.name = w.name[:350]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
@@ -370,7 +372,7 @@ class IntervalsIntegration(SyncIntegration):
|
|||||||
w.is_commute = False
|
w.is_commute = False
|
||||||
except KeyError:
|
except KeyError:
|
||||||
w.is_commute = False
|
w.is_commute = False
|
||||||
|
|
||||||
w.save()
|
w.save()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -3775,7 +3775,7 @@ class Workout(models.Model):
|
|||||||
team = models.ManyToManyField(Team, blank=True)
|
team = models.ManyToManyField(Team, blank=True)
|
||||||
plannedsession = models.ForeignKey(PlannedSession, blank=True, null=True,
|
plannedsession = models.ForeignKey(PlannedSession, blank=True, null=True,
|
||||||
verbose_name='Session', on_delete=models.SET_NULL)
|
verbose_name='Session', on_delete=models.SET_NULL)
|
||||||
name = models.CharField(max_length=150, blank=True, null=True)
|
name = models.CharField(max_length=350, blank=True, null=True)
|
||||||
date = models.DateField(blank=True, null=True)
|
date = models.DateField(blank=True, null=True)
|
||||||
workouttype = models.CharField(choices=workouttypes, max_length=50,
|
workouttype = models.CharField(choices=workouttypes, max_length=50,
|
||||||
verbose_name='Exercise/Boat Class')
|
verbose_name='Exercise/Boat Class')
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -101,6 +101,11 @@ AUTHENTICATION_BACKENDS = (
|
|||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = ['https://rowsandall.com', 'https://www.rowsandall.com', 'http://localhost', 'https://dunav.ngrok.io']
|
CSRF_TRUSTED_ORIGINS = ['https://rowsandall.com', 'https://www.rowsandall.com', 'http://localhost', 'https://dunav.ngrok.io']
|
||||||
|
|
||||||
|
CSRF_COOKIE_SAMESITE = 'None'
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
SESSION_COOKIE_SAMESITE = 'None'
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.common.BrokenLinkEmailsMiddleware',
|
'django.middleware.common.BrokenLinkEmailsMiddleware',
|
||||||
|
|||||||
Reference in New Issue
Block a user