Skip to content

Commit

Permalink
rdrf #2425 checking code blocked out
Browse files Browse the repository at this point in the history
  • Loading branch information
id2359 committed Mar 15, 2023
1 parent dadfbf0 commit 61155d1
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions rdrf/rdrf/services/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def send_proms_request(registry_code, patient_id, survey_name=None, form_name=No
)

survey_request.save()
logger.info(f"saved survey_request ok")
logger.info("saved survey_request ok")
try:
survey_request.send()
except Exception as ex:
Expand All @@ -198,15 +198,5 @@ def send_proms_request(registry_code, patient_id, survey_name=None, form_name=No

@app.task(name="rdrf.services.tasks.check_proms")
def check_proms(registry_code, pid):
from datetime import datetime
from rdrf.models.definition.models import Registry
from registry.patients.models import Patient
from rdrf.models.proms.models import SurveyRequest
from rdrf.models.proms.models import Survey
from rdrf.models.proms.models import SurveyRequestStates
from rdrf.scheduling import scheduling as sched

registry = Registry.objects.get(code=registry_code)
patient = Patient.objects.get(id=pid)

t = datetime.now()
# to do
return registry_code, pid

0 comments on commit 61155d1

Please sign in to comment.