Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-moore-97 committed Feb 2, 2024
1 parent ea8aee0 commit 7c36996
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
repos:
- repo: https://github.com/psf/black
rev: 22.3.0 # Update with 'pre-commit autoupdate'
rev: 24.1.1 # Update with 'pre-commit autoupdate'
hooks:
- id: black

- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
rev: 1.7.7
hooks:
- id: bandit
exclude: tests
36 changes: 18 additions & 18 deletions qualtrix/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,26 +565,26 @@ def get_answer_from_result(result):
}

if device_type_choice == 1: # Iphone or Ipad
device_response[
"device_model"
] = IBetaSurveyQuestion.DEVICE_MODEL_APPLE.QID_label(labels)
device_response[
"device_details"
] = IBetaSurveyQuestion.DEVICE_MODEL_APPLE.QID_text(values)
device_response["device_model"] = (
IBetaSurveyQuestion.DEVICE_MODEL_APPLE.QID_label(labels)
)
device_response["device_details"] = (
IBetaSurveyQuestion.DEVICE_MODEL_APPLE.QID_text(values)
)
elif device_type_choice == 2: # Samsung Galaxy Phone or Tablet
device_response[
"device_model"
] = IBetaSurveyQuestion.DEVICE_MODEL_SAMSUNG.QID_label(labels)
device_response[
"device_details"
] = IBetaSurveyQuestion.DEVICE_MODEL_SAMSUNG.QID_text(values)
device_response["device_model"] = (
IBetaSurveyQuestion.DEVICE_MODEL_SAMSUNG.QID_label(labels)
)
device_response["device_details"] = (
IBetaSurveyQuestion.DEVICE_MODEL_SAMSUNG.QID_text(values)
)
elif device_type_choice == 3: # Google Phone or Tablet
device_response[
"device_model"
] = IBetaSurveyQuestion.DEVICE_MODEL_GOOGLE.QID_label(labels)
device_response[
"device_details"
] = IBetaSurveyQuestion.DEVICE_MODEL_GOOGLE.QID_text(values)
device_response["device_model"] = (
IBetaSurveyQuestion.DEVICE_MODEL_GOOGLE.QID_label(labels)
)
device_response["device_details"] = (
IBetaSurveyQuestion.DEVICE_MODEL_GOOGLE.QID_text(values)
)

return {
"tester_id": IBetaSurveyQuestion.TESTER_ID.QID_label(labels),
Expand Down
1 change: 1 addition & 0 deletions qualtrix/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Qualtrix Microservice FastAPI Web App.
"""

import logging

import fastapi
Expand Down
1 change: 1 addition & 0 deletions qualtrix/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Configuration for the qualtrix microservice settings.
Context is switched based on if the app is in debug mode.
"""

import json
import logging
import os
Expand Down

0 comments on commit 7c36996

Please sign in to comment.