Skip to content

Commit 10acf78

Browse files
Merge pull request #833 from tyu-avo/code_smell_fixes
code smell cleanup
2 parents 6fc93f8 + 13d01e4 commit 10acf78

File tree

24 files changed

+255
-294
lines changed

24 files changed

+255
-294
lines changed

api/app/resources/bookings/exam/exam_bcmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def post(self):
7272
else:
7373

7474
logging.info("Creating Group Environment exam")
75-
bcmp_response = self.bcmp_service.create_group_exam_bcmp(exam, booking, formatted_data["candidates_list_bcmp"], invigilator, formatted_data["pesticide_office"], g.jwt_oidc_token_info)
75+
bcmp_response = self.bcmp_service.create_group_exam_bcmp(exam, booking, formatted_data["candidates_list_bcmp"], formatted_data["pesticide_office"], g.jwt_oidc_token_info)
7676

7777

7878
if bcmp_response:

api/app/utilities/bcmp_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def create_individual_exam(self, exam, exam_fees, invigilator, pesticide_office,
123123
response = self.send_request(url, 'POST', bcmp_exam)
124124
return response
125125

126-
def create_group_exam_bcmp(self, exam, booking, candiate_list, invigilator, pesticide_office, oidc_token_info):
126+
def create_group_exam_bcmp(self, exam, booking, candiate_list, pesticide_office, oidc_token_info):
127127
url = "%s/auth=%s;%s/JSON/create:BCMD-EXAM-GROUP" % (self.base_url, self.bcmp_user, self.auth_token)
128128
my_print(" ==> create_group_exam_bcmp url: %s" % url)
129129

appointment-frontend/package-lock.json

Lines changed: 75 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

appointment-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@kazupon/vue-i18n-loader": "^0.5.0",
4646
"@types/cypress-image-snapshot": "^3.1.6",
4747
"@types/humps": "^2.0.1",
48-
"@types/jest": "^26.0.24",
48+
"@types/jest": "^27.0.1",
4949
"@types/puppeteer": "^5.4.5",
5050
"@vue/cli-plugin-babel": "^5.0.4",
5151
"@vue/cli-plugin-e2e-nightwatch": "^5.0.4",

appointment-frontend/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var path = require('path')
1+
let path = require('path')
22
module.exports = {
33
configureWebpack: {
44
devtool: 'source-map',

frontend/build/build-local.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ require('./check-versions')()
22

33
process.env.NODE_ENV = 'development'
44

5-
var ora = require('ora')
6-
var rm = require('rimraf')
7-
var path = require('path')
8-
var chalk = require('chalk')
9-
var webpack = require('webpack')
10-
var config = require('../config')
11-
var webpackConfig = require('./webpack.dev.conf')
5+
const ora = require('ora')
6+
const rm = require('rimraf')
7+
const path = require('path')
8+
const chalk = require('chalk')
9+
const webpack = require('webpack')
10+
const config = require('../config')
11+
const webpackConfig = require('./webpack.dev.conf')
1212

13-
var spinner = ora('building for localhost...')
13+
const spinner = ora('building for localhost...')
1414
spinner.start()
1515

1616
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {

frontend/build/build-prod.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ require('./check-versions')()
22

33
process.env.NODE_ENV = 'production'
44

5-
var ora = require('ora')
6-
var rm = require('rimraf')
7-
var path = require('path')
8-
var chalk = require('chalk')
9-
var webpack = require('webpack')
10-
var config = require('../config')
11-
var webpackConfig = require('./webpack.prod.conf')
5+
const ora = require('ora')
6+
const rm = require('rimraf')
7+
const path = require('path')
8+
const chalk = require('chalk')
9+
const webpack = require('webpack')
10+
const config = require('../config')
11+
const webpackConfig = require('./webpack.prod.conf')
1212

13-
var spinner = ora('building for production...')
13+
const spinner = ora('building for production...')
1414
spinner.start()
1515

1616
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {

0 commit comments

Comments
 (0)