Private
Public Access
1
0

return token

This commit is contained in:
2024-12-26 13:42:38 +01:00
parent d3b802e890
commit cef7654362
4 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
from rowers.models import Rower, PaidPlan, CoachingGroup #, iDokladToken from rowers.models import Rower, PaidPlan, CoachingGroup, iDokladToken
from rowers.utils import ProcessorCustomerError from rowers.utils import ProcessorCustomerError
from rowsandall_app.settings import ( from rowsandall_app.settings import (
BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY, BRAINTREE_PRIVATE_KEY, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY, BRAINTREE_PRIVATE_KEY,

View File

@@ -21,7 +21,7 @@ from rowers.utils import myqueue
import django_rq import django_rq
queuehigh = django_rq.get_queue('high') queuehigh = django_rq.get_queue('high')
#from rowers.models import iDokladToken from rowers.models import iDokladToken
#idoklad_countries = json.loads(open('rowers/idoklad_countries.json').read())["Data"]["Items"] #idoklad_countries = json.loads(open('rowers/idoklad_countries.json').read())["Data"]["Items"]
with open('rowers/idoklad_countries.yaml') as f: with open('rowers/idoklad_countries.yaml') as f:

View File

@@ -5587,15 +5587,15 @@ class ForceCurveAnalysis(models.Model):
return s return s
#class iDokladToken(models.Model): class iDokladToken(models.Model):
# access_token = models.CharField(max_length=512) access_token = models.CharField(max_length=512)
# refresh_token = models.CharField(max_length=512) refresh_token = models.CharField(max_length=512)
# id_token = models.CharField(max_length=512) id_token = models.CharField(max_length=512)
# token_type = models.CharField(max_length=512) token_type = models.CharField(max_length=512)
# created_at = models.DateTimeField(auto_now_add=True) created_at = models.DateTimeField(auto_now_add=True)
# updated_at = models.DateTimeField(auto_now=True) updated_at = models.DateTimeField(auto_now=True)
# expires_in = models.IntegerField() # Store token expiry duration in seconds expires_in = models.IntegerField() # Store token expiry duration in seconds
# def __str__(self): def __str__(self):
# return f"iDoklad Token updated at {self.updated_at}, expires at {self.updated_at+datetime.timedelta(seconds=self.expires_in)}" return f"iDoklad Token updated at {self.updated_at}, expires at {self.updated_at+datetime.timedelta(seconds=self.expires_in)}"

View File

@@ -181,7 +181,7 @@ from rowers.models import ( RowerPowerForm, RowerHRZonesForm, SimpleRowerPowerFo
IndoorVirtualRaceForm, PlannedSessionCommentForm, Alert, IndoorVirtualRaceForm, PlannedSessionCommentForm, Alert,
Condition, StaticChartRowerForm, FollowerForm, Condition, StaticChartRowerForm, FollowerForm,
VirtualRaceAthleteForm, InstantPlanForm, DataRowerForm, VirtualRaceAthleteForm, InstantPlanForm, DataRowerForm,
StepEditorForm, #iDokladToken, StepEditorForm, iDokladToken,
RowerExportFormStrava, RowerExportFormPolar, RowerExportFormStrava, RowerExportFormPolar,
RowerExportFormSportTracks, RowerExportFormTrainingPeaks, RowerExportFormSportTracks, RowerExportFormTrainingPeaks,
RowerExportFormConcept2, RowerExportFormGarmin, RowerExportFormConcept2, RowerExportFormGarmin,